Bump version back up for tapbacks and replies

This commit is contained in:
Garth Vander Houwen 2022-02-18 19:01:14 -08:00
parent ff2dafca68
commit 20ff3d324d

View file

@ -35,7 +35,7 @@ struct UserMessageList: View {
var body: some View {
let firmwareVersion = bleManager.lastConnnectionVersion
let minimumVersion = "1.2.54"
let minimumVersion = "1.3.0"
let hasTapbackSupport = minimumVersion.compare(firmwareVersion, options: .numeric) == .orderedAscending || minimumVersion.compare(firmwareVersion, options: .numeric) == .orderedSame
VStack {
@ -49,7 +49,7 @@ struct UserMessageList: View {
if allMessages.count > 0 {
HStack{
// Padding at the top of the message list
// Padding at the top of the message list
}.padding(.bottom)
ForEach( allMessages ) { (message: MessageEntity) in
@ -63,7 +63,7 @@ struct UserMessageList: View {
let messageReply = allMessages.first(where: { $0.messageId == message.replyID })
HStack {
Text(String(message.messageId))
Text(messageReply?.messagePayload ?? "EMPTY MESSAGE").foregroundColor(.blue).font(.caption2)
.padding(10)
.overlay(
@ -346,7 +346,7 @@ struct UserMessageList: View {
})
.onChange(of: allMessages.count, perform: { count in
self.context.refresh(user, mergeChanges: true)
//self.context.refresh(user, mergeChanges: true)
let index = count - 1