Various fixes

This commit is contained in:
Ilya Laktyushin
2024-05-25 21:31:39 +04:00
parent ba3a6d9b9d
commit 4e96f34992
4 changed files with 38 additions and 8 deletions

View File

@@ -281,10 +281,12 @@ private func canViewReadStats(message: Message, participantCount: Int?, isMessag
}
func canReplyInChat(_ chatPresentationInterfaceState: ChatPresentationInterfaceState, accountPeerId: PeerId) -> Bool {
if case let .customChatContents(contents) = chatPresentationInterfaceState.subject, case .hashTagSearch = contents.kind {
return false
}
if case .customChatContents = chatPresentationInterfaceState.chatLocation {
return true
}
guard let peer = chatPresentationInterfaceState.renderedPeer?.peer else {
return false
}