mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support psa_message in chats list.
This commit is contained in:
@@ -86,21 +86,15 @@ void Entry::cachePinnedIndex(FilterId filterId, int index) {
|
||||
}
|
||||
}
|
||||
|
||||
void Entry::cacheTopPromoted(
|
||||
bool promoted,
|
||||
const QString &type,
|
||||
const QString &message) {
|
||||
if (_isTopPromoted != promoted
|
||||
|| _topPromotedType != type
|
||||
|| _topPromotedMessage != message) {
|
||||
_isTopPromoted = promoted;
|
||||
_topPromotedType = type;
|
||||
_topPromotedMessage = message;
|
||||
updateChatListSortPosition();
|
||||
updateChatListEntry();
|
||||
if (!_isTopPromoted) {
|
||||
updateChatListExistence();
|
||||
}
|
||||
void Entry::cacheTopPromoted(bool promoted) {
|
||||
if (_isTopPromoted == promoted) {
|
||||
return;
|
||||
}
|
||||
_isTopPromoted = promoted;
|
||||
updateChatListSortPosition();
|
||||
updateChatListEntry();
|
||||
if (!_isTopPromoted) {
|
||||
updateChatListExistence();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,14 +102,6 @@ bool Entry::isTopPromoted() const {
|
||||
return _isTopPromoted;
|
||||
}
|
||||
|
||||
QString Entry::topPromotionType() const {
|
||||
return _topPromotedType;
|
||||
}
|
||||
|
||||
QString Entry::topPromotionMessage() const {
|
||||
return _topPromotedMessage;
|
||||
}
|
||||
|
||||
bool Entry::needUpdateInChatList() const {
|
||||
return inChatList() || shouldBeInChatList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user