mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08: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