mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 15:03:16 +00:00
ios: go to forwarded item or search result (#5679)
* ios: go to forwarded item or search result * react on touch * changes
This commit is contained in:
1 parent
b482d4d812
commit
fefddb3b5a
11 files changed
+228
-64
No files matched your search
@@ -3261,6 +3261,20 @@ public enum CIForwardedFrom: Decodable, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
public var chatTypeApiIdMsgId: (ChatType, Int64, ChatItem.ID?)? {
|
||||
switch self {
|
||||
case .unknown: nil
|
||||
case let .contact(_, _, contactId, msgId):
|
||||
if let contactId {
|
||||
(ChatType.direct, contactId, msgId)
|
||||
} else { nil }
|
||||
case let .group(_, _, groupId, msgId):
|
||||
if let groupId {
|
||||
(ChatType.group, groupId, msgId)
|
||||
} else { nil }
|
||||
}
|
||||
}
|
||||
|
||||
public func text(_ chatType: ChatType) -> LocalizedStringKey {
|
||||
chatType == .local
|
||||
? (chatName == "" ? "saved" : "saved from \(chatName)")
|
||||
|
||||
Reference in new issue
Block a user