Skip to content

Commit

Permalink
Revert "feat: Presence identity module to support other auth mechanis…
Browse files Browse the repository at this point in the history
…ms."

This reverts commit a6457db.
  • Loading branch information
damencho committed Aug 7, 2024
1 parent a6457db commit 26021b2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions resources/prosody-plugins/mod_presence_identity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26021b2

Please sign in to comment.