From 26021b2dd0ab27faad7bfc20a6959e6bf685ae34 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 7 Aug 2024 08:46:35 +0300 Subject: [PATCH] Revert "feat: Presence identity module to support other auth mechanisms." This reverts commit a6457db8191ec010cf85301e7a8eef038430bbce. --- .../prosody-plugins/mod_presence_identity.lua | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/resources/prosody-plugins/mod_presence_identity.lua b/resources/prosody-plugins/mod_presence_identity.lua index 940e6924191..4db397e841f 100644 --- a/resources/prosody-plugins/mod_presence_identity.lua +++ b/resources/prosody-plugins/mod_presence_identity.lua @@ -6,21 +6,14 @@ local update_presence_identity = module:require "util".update_presence_identity; -- for that session. function on_message(event) if event and event["stanza"] then - if event.origin then - local user; - local group; - if event.origin.jitsi_meet_context_user then - user = event.origin.jitsi_meet_context_user; - group = event.origin.jitsi_meet_context_group; - else - user = { id = event.origin.username }; -- when using auth similar to internal_hashed - end + if event.origin and event.origin.jitsi_meet_context_user then update_presence_identity( event.stanza, - user, - group + event.origin.jitsi_meet_context_user, + event.origin.jitsi_meet_context_group ); + end end end