Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(call-flows): Maintain presence tags and call id in poltergeist presence stanza.
Jacob MacElroy83720a4ed5b2
diff --git a/resources/prosody-plugins/mod_muc_poltergeist.lua b/resources/prosody-plugins/mod_muc_poltergeist.luaindex 464bb9b604..6eec8aac1b 100644--- a/resources/prosody-plugins/mod_muc_poltergeist.lua+++ b/resources/prosody-plugins/mod_muc_poltergeist.lua@@ -241,8 +241,14 @@ function create_poltergeist_occupant(room, nick, name, avatar, status, context)join:tag("password", { xmlns = MUC_NS }):text(room_password);end+ -- Update the nil call id to the initial call id for call flows.local call_id = get_username(room, context.user.id);- join_presence:tag("call_id"):text(get_username(room, context.user.id)):up();+ join_presence:maptags(function (tag)+ if tag.name == "call_id" then+ return st.stanza("call_id"):text(call_id);+ end+ return tag;+ end);update_presence_identity(join_presence,@@ -356,6 +362,7 @@ function update_presence_tags(presence_stanza, status, call_details)return st.stanza("call_cancel"):text("false");endend+ return tag;end);return presence_stanza