mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix search in chat / jump to archive.
This commit is contained in:
@@ -3703,8 +3703,11 @@ void InnerWidget::setupShortcuts() {
|
||||
const auto folder = session().data().folderLoaded(
|
||||
Data::Folder::kId);
|
||||
if (folder && !folder->chatsList()->empty()) {
|
||||
_controller->openFolder(folder);
|
||||
_controller->window().hideSettingsAndLayer();
|
||||
const auto controller = _controller;
|
||||
controller->openFolder(folder);
|
||||
|
||||
// Calling openFolder() could've destroyed this widget.
|
||||
controller->window().hideSettingsAndLayer();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user