Skip to content

Commit

Permalink
fix(livechat): registering guest multiple times cause message loss (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Apr 23, 2024
1 parent 27b5e32 commit e6dfed4
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 248 deletions.
6 changes: 6 additions & 0 deletions .changeset/nine-houses-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rocket.chat/meteor": patch
"@rocket.chat/livechat": patch
---

Livechat: A registered user loses their messages if 'registerGuest' is called using the same token.
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,6 @@ test.describe('OC - Livechat API', () => {
};

await test.step('Expect registerGuest work with the same token, multiple times', async () => {
test.fail();

await poLiveChat.page.evaluate(() => window.RocketChat.livechat.maximizeWidget());
await expect(page.frameLocator('#rocketchat-iframe').getByText('Start Chat')).toBeVisible();

Expand Down
246 changes: 0 additions & 246 deletions packages/livechat/src/lib/hooks.js

This file was deleted.

Loading

0 comments on commit e6dfed4

Please sign in to comment.