mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Display timestamps when available
This commit is contained in:
@@ -1787,6 +1787,16 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
|
||||
if let stats, !stats.readTimestamps.isEmpty {
|
||||
displayReadTimestamps = true
|
||||
}
|
||||
let tempState = EngineMessageReactionListContext.State(message: EngineMessage(message), readStats: stats, reaction: nil)
|
||||
var allItemsHaveTimestamp = true
|
||||
for item in tempState.items {
|
||||
if item.timestamp == nil {
|
||||
allItemsHaveTimestamp = false
|
||||
}
|
||||
}
|
||||
if allItemsHaveTimestamp {
|
||||
displayReadTimestamps = true
|
||||
}
|
||||
|
||||
c.pushItems(items: .single(ContextController.Items(content: .custom(ReactionListContextMenuContent(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user