mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix crash in opening topics in a new window.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user