[PB-6002]: fix/provide-userId-when-leaving-as-an-anon-user#199
[PB-6002]: fix/provide-userId-when-leaving-as-an-anon-user#199
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
meet-web | 013d2f5 | Commit Preview URL Branch Preview URL |
Mar 23 2026, 04:35 PM |
| MeetingService.instance.leaveCall(roomId); | ||
|
|
||
| const user = LocalStorageManager.instance.getUser(); | ||
| const anonymousUserId = user ? undefined : LocalStorageManager.instance.getAnonymousUUID(); |
There was a problem hiding this comment.
Will it work for the meeting moderator (the user who created the call)?
There was a problem hiding this comment.
yes for the moderator or any signed in user it simply the userId is inferred from their jwt. so post request body can be null, if anything is specified it would be ignored
| const user = LocalStorageManager.instance.getUser(); | ||
| const anonymousUserId = user ? undefined : LocalStorageManager.instance.getAnonymousUUID(); | ||
| await MeetingService.instance.leaveCall(roomId, anonymousUserId ? { userId: anonymousUserId } : undefined); |
There was a problem hiding this comment.
maybe could extrat this logic to a helper function in order to not maitain same code in different places , what do you think?
There was a problem hiding this comment.
you are right, thanks! addressed
… improved user identification when leaving calls
|
Deploying meet-web with
|
| Latest commit: | 013d2f5 |
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dcb82080.meet-web.pages.dev |
| Updated (Europe/Madrid): | 23/3/2026, 17:34:19 |
|
@ValentynaBlahodyrQA Here you go: https://dcb82080.meet-web.pages.dev/ |



Provide userId in leave body call when leaving as an anon user.