mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
bug fix
This commit is contained in:
parent
c202037099
commit
09a538bf1c
2 changed files with 8 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ public func updateMessageReactionsInteractively(account: Account, messageId: Mes
|
|||
break loop
|
||||
}
|
||||
}
|
||||
|
||||
attributes.append(PendingReactionsMessageAttribute(accountPeerId: account.peerId, value: reaction))
|
||||
return .update(StoreMessage(id: currentMessage.id, globallyUniqueId: currentMessage.globallyUniqueId, groupingKey: currentMessage.groupingKey, threadId: currentMessage.threadId, timestamp: currentMessage.timestamp, flags: StoreMessageFlags(currentMessage.flags), tags: currentMessage.tags, globalTags: currentMessage.globalTags, localTags: currentMessage.localTags, forwardInfo: storeForwardInfo, authorId: currentMessage.author?.id, text: currentMessage.text, attributes: attributes, media: currentMessage.media))
|
||||
})
|
||||
|
|
@ -319,6 +320,8 @@ public final class EngineMessageReactionListContext {
|
|||
|
||||
if initialState.canLoadMore {
|
||||
self.loadMore()
|
||||
} else {
|
||||
self.statePromise.set(.single(self.state))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -328,6 +328,11 @@ public extension Message {
|
|||
return !attribute.reactions.isEmpty
|
||||
}
|
||||
}
|
||||
for attribute in self.attributes {
|
||||
if let attribute = attribute as? PendingReactionsMessageAttribute {
|
||||
return attribute.value != nil
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue