Management: Fix exception for "Chat history for new members" (#2215)

This commit is contained in:
Alexander Zinchuk 2022-12-27 02:45:46 +01:00
parent bbe2802db8
commit 4a0606bccf

View File

@ -761,6 +761,7 @@ addActionHandler('togglePreHistoryHidden', async (global, actions, payload) => {
if (isChatBasicGroup(chat)) {
chat = await migrateChat(chat);
global = getGlobal();
if (!chat) {
return;