mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -1366,33 +1366,5 @@ class ChatMessageDateAndStatusNode: ASDisplayNode {
|
||||
}
|
||||
|
||||
func shouldDisplayInlineDateReactions(message: Message, isPremium: Bool, forceInline: Bool) -> Bool {
|
||||
if forceInline {
|
||||
return true
|
||||
}
|
||||
|
||||
if message.id.peerId.namespace == Namespaces.Peer.CloudUser || message.id.peerId.namespace == Namespaces.Peer.SecretChat {
|
||||
if let chatPeer = message.peers[message.id.peerId] as? TelegramUser, chatPeer.isPremium {
|
||||
return false
|
||||
}
|
||||
if let author = message.author as? TelegramUser, author.isPremium {
|
||||
return false
|
||||
}
|
||||
if isPremium {
|
||||
return false
|
||||
}
|
||||
|
||||
if let effectiveReactions = message.effectiveReactions {
|
||||
if effectiveReactions.count > 1 {
|
||||
return false
|
||||
}
|
||||
for reaction in effectiveReactions {
|
||||
if case .custom = reaction.value {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return forceInline
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user