mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 02:50:36 +00:00
Fixed possible crash on deleting own channel.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user