mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Pinned messages improvements
This commit is contained in:
@@ -344,6 +344,16 @@ func contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState:
|
||||
canPin = false
|
||||
}
|
||||
|
||||
if let peer = messages[0].peers[messages[0].id.peerId] {
|
||||
if peer.isDeleted {
|
||||
canPin = false
|
||||
}
|
||||
if !(peer is TelegramSecretChat) && messages[0].id.namespace != Namespaces.Message.Cloud {
|
||||
canPin = false
|
||||
canReply = false
|
||||
}
|
||||
}
|
||||
|
||||
var loadStickerSaveStatusSignal: Signal<Bool?, NoError> = .single(nil)
|
||||
if loadStickerSaveStatus != nil {
|
||||
loadStickerSaveStatusSignal = context.account.postbox.transaction { transaction -> Bool? in
|
||||
|
||||
Reference in New Issue
Block a user