2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Update API scheme on layer 148.

This commit is contained in:
John Preston
2022-09-27 10:25:26 +04:00
parent 73e56b0340
commit c90f879c96
13 changed files with 149 additions and 95 deletions

View File

@@ -40,18 +40,22 @@ void ForumTopic::applyTopic(const MTPForumTopic &topic) {
applyTitle(qs(data.vtitle()));
const auto pinned = _list->pinned();
#if 0 // #TODO forum pinned
if (data.is_pinned()) {
pinned->addPinned(Dialogs::Key(this));
} else {
pinned->setPinned(Dialogs::Key(this), false);
}
#endif
applyTopicFields(
data.vunread_count().v,
data.vread_inbox_max_id().v,
data.vread_outbox_max_id().v);
applyTopicTopMessage(data.vtop_message().v);
//setUnreadMark(data.is_unread_mark());
#if 0 // #TODO forum unread mark
setUnreadMark(data.is_unread_mark());
#endif
}
void ForumTopic::indexTitleParts() {