mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Fix crash in opening topics in a new window.
This commit is contained in:
parent
36f6917bd3
commit
9ef74c510c
1 changed files with 2 additions and 1 deletions
|
@ -689,8 +689,9 @@ void Filler::addNewWindow() {
|
|||
_addAction(tr::lng_context_new_window(tr::now), [=] {
|
||||
Ui::PreventDelayedActivation();
|
||||
if (const auto strong = weak.get()) {
|
||||
const auto forum = !strong->asTopic() && peer->isForum();
|
||||
controller->showInNewWindow(SeparateId(
|
||||
peer->isForum() ? SeparateType::Forum : SeparateType::Chat,
|
||||
forum ? SeparateType::Forum : SeparateType::Chat,
|
||||
strong));
|
||||
}
|
||||
}, &st::menuIconNewWindow);
|
||||
|
|
Loading…
Add table
Reference in a new issue