2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Improve multi-pinned message bar.

This commit is contained in:
John Preston
2020-10-20 14:37:03 +03:00
parent a614ccad97
commit aefef948cd
8 changed files with 226 additions and 45 deletions

View File

@@ -543,7 +543,7 @@ void PeerData::addPinnedSlice(
return;
}
ensurePinnedMessagesCreated();
_pinnedMessages->add(std::move(ids), noSkipRange, std::nullopt);
_pinnedMessages->add(std::move(ids), noSkipRange, count);
session().changes().peerUpdated(this, UpdateFlag::PinnedMessage);
}