2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Support psa_message in chats list.

This commit is contained in:
John Preston
2020-04-29 12:46:02 +04:00
parent aabc8173c3
commit 042ed8f54a
6 changed files with 59 additions and 35 deletions

View File

@@ -3723,12 +3723,12 @@ void Session::setTopPromoted(
|| (history && history->topPromotionMessage() != message)) {
if (changed) {
if (const auto history = historyLoaded(_topPromoted)) {
history->cacheTopPromoted(false, QString(), QString());
history->cacheTopPromotion(false, QString(), QString());
}
}
const auto old = std::exchange(_topPromoted, promoted);
if (history) {
history->cacheTopPromoted(true, type, message);
history->cacheTopPromotion(true, type, message);
history->requestChatListMessage();
Notify::peerUpdatedDelayed(
_topPromoted,