Reference / previous discussion: #15336
Quick fix: #17782
Drawback: router listener takes longer, as leaveConversation > joinConversation are now conseqent requests to server/HPB
To verify:
If I am not mistaken (but I am speaking from memory, so take this with a pinch of salt) joining a new conversation implicitly leaves the old one, so a possible improvement might be to wait only if the user is active in a call, and otherwise just switch to the new conversation without waiting. This should solve the race condition when switching between calls and at the same time prevent the delays introduced with this fix when switching between conversations.
Originally posted by @danxuliu in #17782 (review)
Reference / previous discussion: #15336
Quick fix: #17782
Drawback: router listener takes longer, as
leaveConversation>joinConversationare now conseqent requests to server/HPBTo verify:
If I am not mistaken (but I am speaking from memory, so take this with a pinch of salt) joining a new conversation implicitly leaves the old one, so a possible improvement might be to wait only if the user is active in a call, and otherwise just switch to the new conversation without waiting. This should solve the race condition when switching between calls and at the same time prevent the delays introduced with this fix when switching between conversations.
Originally posted by @danxuliu in #17782 (review)
room/{old-token}/participants/activeis required, if followed by POST toroom/{new-token}/participants/activewithin the same PHP session?cc @nickvergessen
cc @fancycode
spreed/src/utils/signaling.js
Lines 250 to 266 in c5bebda