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

Display jump to last topic message bubble.

This commit is contained in:
John Preston
2022-11-13 23:38:18 +04:00
parent 97356032ac
commit ede34578da
18 changed files with 486 additions and 320 deletions

View File

@@ -625,6 +625,10 @@ TextWithEntities ForumTopic::titleWithIcon() const {
return ForumTopicIconWithTitle(_iconId, _title);
}
int ForumTopic::titleVersion() const {
return _titleVersion;
}
void ForumTopic::applyTitle(const QString &title) {
if (_title == title) {
return;
@@ -647,6 +651,7 @@ void ForumTopic::applyIconId(DocumentId iconId) {
return;
}
_iconId = iconId;
++_titleVersion;
_icon = iconId
? std::make_unique<Ui::Text::LimitedLoopsEmoji>(
owner().customEmojiManager().create(