mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Use public key from user on outgoiong messages
This commit is contained in:
parent
c1e625f7f9
commit
9368156eff
2 changed files with 5 additions and 1 deletions
|
|
@ -1000,6 +1000,10 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
|
|||
if toUserNum > 0 {
|
||||
newMessage.toUser = fetchedUsers.first(where: { $0.num == toUserNum })
|
||||
newMessage.toUser?.lastMessage = Date()
|
||||
if newMessage.toUser?.pkiEncrypted ?? false {
|
||||
newMessage.publicKey = newMessage.toUser?.publicKey
|
||||
newMessage.pkiEncrypted = true
|
||||
}
|
||||
}
|
||||
newMessage.fromUser = fetchedUsers.first(where: { $0.num == fromUserNum })
|
||||
newMessage.isEmoji = isEmoji
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ struct NodeListFilter: View {
|
|||
.padding(.bottom)
|
||||
#endif
|
||||
}
|
||||
.presentationDetents([.fraction(0.65), .large])
|
||||
.presentationDetents([.fraction(0.75), .large])
|
||||
.presentationContentInteraction(.scrolls)
|
||||
.presentationDragIndicator(.visible)
|
||||
.presentationBackgroundInteraction(.enabled(upThrough: .large))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue