Comment improvements

This commit is contained in:
Ali
2020-09-11 13:08:04 +01:00
parent 04e4297fdb
commit 0fbc4f7009
11 changed files with 99 additions and 36 deletions

View File

@@ -1070,6 +1070,9 @@ func chatAvailableMessageActionsImpl(postbox: Postbox, accountPeerId: PeerId, me
} else if limitsConfiguration.canRemoveIncomingMessagesInPrivateChats {
canDeleteGlobally = true
}
if user.botInfo != nil {
canDeleteGlobally = false
}
let timestamp = Int32(CFAbsoluteTimeGetCurrent() + NSTimeIntervalSince1970)
if isDice && Int64(message.timestamp) + 60 * 60 * 24 > Int64(timestamp) {