Chat List: Fix exception when missing greeting stickers

This commit is contained in:
Alexander Zinchuk 2021-08-05 13:36:28 +03:00
parent dbc5949957
commit 6cbec59bb9

View File

@ -117,7 +117,11 @@ function readCache(initialState: GlobalState) {
};
if (!cached.messages.messageLists) {
cached.messages.messageLists = [];
cached.messages.messageLists = initialState.messages.messageLists;
}
if (!cached.stickers.greeting) {
cached.stickers.greeting = initialState.stickers.greeting;
}
}