Skip to content

Commit

Permalink
fix: Blinking UI colors when finishing a Livechat conversation. (#31752)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Schoeler <[email protected]>
  • Loading branch information
2 people authored and sampaiodiego committed Feb 16, 2024
1 parent cd98871 commit e7ebd44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-chicken-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/livechat": patch
---

fixed livechat UI blinking different colors when the chat is finished
4 changes: 3 additions & 1 deletion packages/livechat/src/lib/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const closeChat = async ({ transcriptRequested } = {}) => {

if (clearLocalStorageWhenChatEnded) {
// exclude UI-affecting flags
const { minimized, visible, undocked, expanded, businessUnit, ...initial } = initialState();
const { iframe: currentIframe } = store.state;
const { minimized, visible, undocked, expanded, businessUnit, config, iframe, ...initial } = initialState();
initial.iframe = { ...currentIframe, guest: {} };
await store.setState(initial);
}

Expand Down

0 comments on commit e7ebd44

Please sign in to comment.