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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user