mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-14 05:15:54 +00:00
ios: fix opening direct chats (#555)
This commit is contained in:
committed by
GitHub
parent
0091e9f162
commit
e6fdb40c59
@@ -16,7 +16,14 @@ struct ChatListNavLink: View {
|
||||
var body: some View {
|
||||
switch chat.chatInfo {
|
||||
case let .direct(contact):
|
||||
contactNavLink(contact)
|
||||
if contact.ready {
|
||||
contactNavLink(contact)
|
||||
} else {
|
||||
contactNavLink(contact)
|
||||
.onTapGesture {
|
||||
AlertManager.shared.showAlert(pendingContactAlert(chat, contact))
|
||||
}
|
||||
}
|
||||
case let .group(groupInfo):
|
||||
groupNavLink(groupInfo)
|
||||
case let .contactRequest(cReq):
|
||||
@@ -62,11 +69,6 @@ struct ChatListNavLink: View {
|
||||
Label("Delete", systemImage: "trash")
|
||||
}
|
||||
}
|
||||
.onTapGesture {
|
||||
if !contact.ready {
|
||||
AlertManager.shared.showAlert(pendingContactAlert(chat, contact))
|
||||
}
|
||||
}
|
||||
.frame(height: 80)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user