Skip to content

Commit

Permalink
fix(chat): Fix incorrectly working flag when selected conversation lo…
Browse files Browse the repository at this point in the history
…ading (Issue #2793) (#2795)
  • Loading branch information
denys-kolomiitsev authored Dec 12, 2024
1 parent 768a9a9 commit 62e3bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const conversationsSlice = createSlice({
}>,
) => {
state.selectedConversationsIds = uniq(payload.conversationIds);
state.areSelectedConversationsLoaded = false;
},
unselectConversations: (
state,
Expand Down
4 changes: 3 additions & 1 deletion apps/overlay-sandbox/app/cases/overlay/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ export default function Index() {
);
overlay.current?.subscribe(
'@DIAL_OVERLAY/SELECTED_CONVERSATION_LOADED',
(info) => {
async (info) => {
console.info('Conversation selected - ');
const { messages } = await overlay.current!.getMessages();
console.info('messages', messages);

console.info(JSON.stringify(info, null, 2));
},
Expand Down

0 comments on commit 62e3bda

Please sign in to comment.