bug fixes

This commit is contained in:
overtake 2021-12-29 11:27:50 +04:00
parent 5ae36f2660
commit f2ef6d46d5

View File

@ -246,7 +246,9 @@ public extension EngineMessageReactionListContext.State {
}
for recentPeer in reactionsAttribute.recentPeers {
if let peer = message.peers[recentPeer.peerId] {
items.append(EngineMessageReactionListContext.Item(peer: EnginePeer(peer), reaction: recentPeer.value))
if reaction == nil || recentPeer.value == reaction {
items.append(EngineMessageReactionListContext.Item(peer: EnginePeer(peer), reaction: recentPeer.value))
}
}
}
}