2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Support topic icon display in topic profile.

This commit is contained in:
John Preston
2022-10-18 16:38:43 +04:00
parent fcc4503791
commit df5602d203
26 changed files with 317 additions and 119 deletions

View File

@@ -492,7 +492,7 @@ void ForumTopic::applyIconId(DocumentId iconId) {
_defaultIcon = QImage();
}
updateChatListEntry();
session().changes().topicUpdated(this, UpdateFlag::Icon);
session().changes().topicUpdated(this, UpdateFlag::IconId);
}
int32 ForumTopic::colorId() const {
@@ -500,7 +500,10 @@ int32 ForumTopic::colorId() const {
}
void ForumTopic::applyColorId(int32 colorId) {
_colorId = colorId;
if (_colorId != colorId) {
_colorId = colorId;
session().changes().topicUpdated(this, UpdateFlag::ColorId);
}
}
void ForumTopic::applyItemAdded(not_null<HistoryItem*> item) {