2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

Fix crash in unlinking discussion group.

This commit is contained in:
John Preston
2019-06-01 11:13:40 +03:00
parent ea61211a61
commit d7ab7aed62

View File

@@ -1102,7 +1102,7 @@ void Controller::saveLinkedChat() {
} }
const auto chat = *_savingData.linkedChat; const auto chat = *_savingData.linkedChat;
if (channel->isBroadcast() && chat->hiddenPreHistory()) { if (channel->isBroadcast() && chat && chat->hiddenPreHistory()) {
togglePreHistoryHidden( togglePreHistoryHidden(
chat, chat,
false, false,