mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
const auto session = &_peer->session();
|
||||||
|
|
||||||
_navigation->parentController()->hideLayer();
|
_navigation->parentController()->hideLayer();
|
||||||
Core::App().closeChatFromWindows(_peer);
|
Core::App().closeChatFromWindows(channel);
|
||||||
if (chat) {
|
if (chat) {
|
||||||
session->api().deleteConversation(chat, false);
|
session->api().deleteConversation(chat, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue