Management: Fix exception for "Chat history for new members" (#2215)
This commit is contained in:
parent
bbe2802db8
commit
4a0606bccf
@ -761,6 +761,7 @@ addActionHandler('togglePreHistoryHidden', async (global, actions, payload) => {
|
|||||||
|
|
||||||
if (isChatBasicGroup(chat)) {
|
if (isChatBasicGroup(chat)) {
|
||||||
chat = await migrateChat(chat);
|
chat = await migrateChat(chat);
|
||||||
|
global = getGlobal();
|
||||||
|
|
||||||
if (!chat) {
|
if (!chat) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user