diff --git a/ui/src/state/chat/chat.ts b/ui/src/state/chat/chat.ts index 06d4ff5e7b..ece6d6f74b 100644 --- a/ui/src/state/chat/chat.ts +++ b/ui/src/state/chat/chat.ts @@ -743,7 +743,13 @@ export const useChatState = createState( }); get().batchSet((draft) => { - const chat = { perms, saga: null }; + let chat = draft.chats[whom]; + if (chat) { + chat.perms = perms; + } else { + chat = { perms, saga: null }; + } + draft.chats[whom] = chat; }); }, 1);