mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Skip already seen reactions
This commit is contained in:
parent
147a630512
commit
e99ee60bd2
@ -1298,6 +1298,9 @@ public final class AccountViewTracker {
|
||||
for id in addedMessageIds {
|
||||
if let _ = transaction.getMessage(id) {
|
||||
transaction.updateMessage(id, update: { currentMessage in
|
||||
if !currentMessage.tags.contains(.unseenReaction) {
|
||||
return .skip
|
||||
}
|
||||
var attributes = currentMessage.attributes
|
||||
loop: for j in 0 ..< attributes.count {
|
||||
if let attribute = attributes[j] as? ReactionsMessageAttribute {
|
||||
|
Loading…
x
Reference in New Issue
Block a user