mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Show lock for incoming encrypted messages
This commit is contained in:
parent
feab65325e
commit
75c90e35e7
2 changed files with 5 additions and 16 deletions
|
|
@ -21,21 +21,6 @@
|
|||
},
|
||||
": %d" : {
|
||||
|
||||
},
|
||||
".dot" : {
|
||||
|
||||
},
|
||||
".gauge" : {
|
||||
|
||||
},
|
||||
".gradient" : {
|
||||
|
||||
},
|
||||
".pill" : {
|
||||
|
||||
},
|
||||
".text" : {
|
||||
|
||||
},
|
||||
"(Re)define PIN_GPS_EN for your board." : {
|
||||
|
||||
|
|
@ -19139,6 +19124,9 @@
|
|||
},
|
||||
"Send" : {
|
||||
|
||||
},
|
||||
"Send ${messageContent} to ${channelNumber}" : {
|
||||
|
||||
},
|
||||
"Send a Group Message" : {
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ struct MessageText: View {
|
|||
.background(isCurrentUser ? .accentColor : Color(.gray))
|
||||
.cornerRadius(15)
|
||||
.overlay {
|
||||
if message.pkiEncrypted && message.ackError == 0 && message.realACK {
|
||||
/// Show the lock if the message is pki encrypted and has a real ack if sent by the current user, or is pki encrypted for incoming messages
|
||||
if message.pkiEncrypted && message.realACK || !isCurrentUser && message.pkiEncrypted {
|
||||
VStack(alignment: .trailing) {
|
||||
Spacer()
|
||||
HStack {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue