From d7ab7aed629b9c165411cb7ffcb99cb7dff3fd45 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 1 Jun 2019 11:13:40 +0300 Subject: [PATCH] Fix crash in unlinking discussion group. --- Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 6678a1931..659f62ee9 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -1102,7 +1102,7 @@ void Controller::saveLinkedChat() { } const auto chat = *_savingData.linkedChat; - if (channel->isBroadcast() && chat->hiddenPreHistory()) { + if (channel->isBroadcast() && chat && chat->hiddenPreHistory()) { togglePreHistoryHidden( chat, false,