mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 00:39:55 +00:00
Improve bot with forum opening.
This commit is contained in:
@@ -206,11 +206,11 @@ void Thread::setHasPinnedMessages(bool has) {
|
||||
}
|
||||
|
||||
void Thread::saveMeAsActiveSubsectionThread() {
|
||||
if (const auto channel = owningHistory()->peer->asChannel()) {
|
||||
if (channel->useSubsectionTabs()) {
|
||||
if (const auto forum = channel->forum()) {
|
||||
forum->saveActiveSubsectionThread(this);
|
||||
} else if (const auto monoforum = channel->monoforum()) {
|
||||
if (const auto peer = owningHistory()->peer; peer->useSubsectionTabs()) {
|
||||
if (const auto forum = peer->forum()) {
|
||||
forum->saveActiveSubsectionThread(this);
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
if (const auto monoforum = channel->monoforum()) {
|
||||
monoforum->saveActiveSubsectionThread(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user