mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix message viewers display in message reactions box.
This commit is contained in:
parent
67c538ae8f
commit
6a663932f3
1 changed files with 5 additions and 1 deletions
|
@ -508,7 +508,11 @@ rpl::producer<Ui::WhoReadContent> WhoReacted(
|
|||
state->current.fullReadCount = int(peers.read.size());
|
||||
state->current.fullReactionsCount = peers.fullReactionsCount;
|
||||
if (whoReadIds) {
|
||||
whoReadIds->list = (peers.read.size() > peers.list.size())
|
||||
const auto reacted = peers.list.size() - ranges::count(
|
||||
peers.list,
|
||||
QString(),
|
||||
&PeerWithReaction::reaction);
|
||||
whoReadIds->list = (peers.read.size() > reacted)
|
||||
? std::move(peers.read)
|
||||
: std::vector<PeerId>();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue