mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-07 18:15:15 +00:00
Support pinned topics in forums.
This commit is contained in:
@@ -70,6 +70,13 @@ not_null<Dialogs::MainList*> Forum::topicsList() {
|
||||
return &_topicsList;
|
||||
}
|
||||
|
||||
void Forum::unpinTopic() {
|
||||
const auto list = _topicsList.pinned();
|
||||
while (!list->order().empty()) {
|
||||
list->setPinned(list->order().front(), false);
|
||||
}
|
||||
}
|
||||
|
||||
rpl::producer<> Forum::destroyed() const {
|
||||
return channel()->flagsValue(
|
||||
) | rpl::filter([=](const ChannelData::Flags::Change &update) {
|
||||
|
Reference in New Issue
Block a user