mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fixed possible crash on deleting own channel.
This commit is contained in:
parent
9e0e28dc45
commit
deeb022e0b
1 changed files with 1 additions and 1 deletions
|
@ -1913,7 +1913,7 @@ void Controller::deleteChannel() {
|
|||
const auto session = &_peer->session();
|
||||
|
||||
_navigation->parentController()->hideLayer();
|
||||
Core::App().closeChatFromWindows(_peer);
|
||||
Core::App().closeChatFromWindows(channel);
|
||||
if (chat) {
|
||||
session->api().deleteConversation(chat, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue