2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Handle forum / topic links.

This commit is contained in:
John Preston
2022-10-14 18:34:04 +04:00
parent 16e189a2ce
commit ead427793b
6 changed files with 25 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_document.h"
#include "data/data_session.h"
#include "data/data_user.h"
#include "data/data_channel.h"
#include "data/data_download_manager.h"
#include "base/timer.h"
#include "base/event_filter.h"
@@ -1229,6 +1230,9 @@ void Application::closeChatFromWindows(not_null<PeerData*> peer) {
PeerId(0),
Window::SectionShow::Way::ClearStack);
}
if (primary->openedForum().current() == peer) {
primary->closeForum();
}
}
}