From 66c94515f3c99bfab8152a705455f717bc9a68c7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 3 Sep 2017 22:48:52 +0300 Subject: [PATCH] Fix crash in setting group sticker set. --- Telegram/SourceFiles/boxes/stickers_box.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/boxes/stickers_box.cpp b/Telegram/SourceFiles/boxes/stickers_box.cpp index 2474b0882..90c97b70c 100644 --- a/Telegram/SourceFiles/boxes/stickers_box.cpp +++ b/Telegram/SourceFiles/boxes/stickers_box.cpp @@ -502,6 +502,7 @@ bool StickersBox::installFail(uint64 setId, const RPCError &error) { } void StickersBox::preloadArchivedSets() { + if (!_tabs) return; if (!_archivedRequestId) { _archivedRequestId = MTP::send(MTPmessages_GetArchivedStickers(MTP_flags(0), MTP_long(0), MTP_int(kArchivedLimitFirstRequest)), rpcDone(&StickersBox::getArchivedDone, 0ULL)); }