Skip to content

[_] make payload obligatory#402

Merged
TamaraFinogina merged 2 commits into
masterfrom
use_payload_leavecall
May 19, 2026
Merged

[_] make payload obligatory#402
TamaraFinogina merged 2 commits into
masterfrom
use_payload_leavecall

Conversation

@TamaraFinogina
Copy link
Copy Markdown
Contributor

@TamaraFinogina TamaraFinogina commented May 19, 2026

Fix for kick out. Right now, leaveCall takes the userID from the token or payload. However, with the token, it's the same ID for all user copies. Hence, if the 'user Original' leaves and sends leaveCall it sends it with the userID (in token), which now belongs to the 'user Duplicate' in the database, and the record gets deleted.

We'll switch to IDs instead of userIDs. But the first step is to make the payload mandatory

@TamaraFinogina TamaraFinogina requested a review from CandelR May 19, 2026 14:01
@TamaraFinogina TamaraFinogina marked this pull request as ready for review May 19, 2026 14:01
@TamaraFinogina TamaraFinogina merged commit b28b92e into master May 19, 2026
1 check passed
@TamaraFinogina TamaraFinogina deleted the use_payload_leavecall branch May 19, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants