Chat: Fix error on loading chat by username (#2402)

This commit is contained in:
Alexander Zinchuk 2023-01-28 02:16:26 +01:00
parent 5d65428f62
commit d9792cb754

View File

@ -2020,13 +2020,12 @@ export async function fetchChatByUsername<T extends GlobalState>(
global = getGlobal();
global = updateChat(global, chat.id, chat);
setGlobal(global);
if (user) {
global = updateUser(global, user.id, user);
setGlobal(global);
}
setGlobal(global);
return chat;
}