2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use first message of album as the leader.

This commit is contained in:
John Preston
2020-09-16 11:25:57 +03:00
parent 7f928a92ea
commit 8af559e711
5 changed files with 7 additions and 7 deletions

View File

@@ -1234,7 +1234,7 @@ void Session::notifyItemIdChange(IdChange event) {
};
enumerateItemViews(item, refreshViewDataId);
if (const auto group = groups().find(item)) {
const auto leader = group->items.back();
const auto leader = group->items.front();
if (leader != item) {
enumerateItemViews(leader, refreshViewDataId);
}