Chat: Fix error on loading chat by username (#2402)
This commit is contained in:
parent
5d65428f62
commit
d9792cb754
@ -2020,13 +2020,12 @@ export async function fetchChatByUsername<T extends GlobalState>(
|
|||||||
|
|
||||||
global = getGlobal();
|
global = getGlobal();
|
||||||
global = updateChat(global, chat.id, chat);
|
global = updateChat(global, chat.id, chat);
|
||||||
setGlobal(global);
|
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
global = updateUser(global, user.id, user);
|
global = updateUser(global, user.id, user);
|
||||||
setGlobal(global);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setGlobal(global);
|
||||||
|
|
||||||
return chat;
|
return chat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user