2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement pinned topics reordering.

This commit is contained in:
John Preston
2022-11-08 17:57:54 +04:00
parent c7741cb62a
commit 8a288476b8
17 changed files with 221 additions and 105 deletions

View File

@@ -42,7 +42,7 @@ namespace {
using UpdateFlag = TopicUpdate::Flag;
constexpr auto kUserpicLoopsCount = 2;
constexpr auto kUserpicLoopsCount = 1;
} // namespace
@@ -315,12 +315,7 @@ void ForumTopic::applyTopic(const MTPDforumTopic &data) {
if (min) {
int a = 0;
} else {
if (data.is_pinned()) {
owner().setChatPinned(this, 0, true);
} else {
_list->pinned()->setPinned(this, false);
}
owner().setPinnedFromEntryList(this, data.is_pinned());
owner().notifySettings().apply(this, data.vnotify_settings());
if (const auto draft = data.vdraft()) {