Fix message viewers display in message reactions box.

This commit is contained in:
John Preston 2022-02-02 15:40:39 +03:00
parent 67c538ae8f
commit 6a663932f3
1 changed files with 5 additions and 1 deletions

View File

@ -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>();
}