aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-03-15 21:59:51 +0100
committerKim Alvefur <zash@zash.se>2022-03-15 21:59:51 +0100
commitba11d641910a93c898832ed36c3dc783c33ac06f (patch)
treebf4b3e26c7a7408a53a97aa1608998f3ce0f82c0
parent681ac46aae48487a36b2b6c8310ba7e1a161cc6c (diff)
downloadprosody-ba11d641910a93c898832ed36c3dc783c33ac06f.tar.gz
prosody-ba11d641910a93c898832ed36c3dc783c33ac06f.zip
mod_invites_register: Push invitee contact entry to inviter
Invitee would not show up in the roster of the invite creator unless they fetch their roster afterwards. Fixes #1715 Thanks gerald
-rw-r--r--plugins/mod_invites_register.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_invites_register.lua b/plugins/mod_invites_register.lua
index 9a5570ab..d1d801ad 100644
--- a/plugins/mod_invites_register.lua
+++ b/plugins/mod_invites_register.lua
@@ -141,6 +141,7 @@ module:hook("user-registered", function (event)
if inviter_username then
module:log("debug", "Creating mutual subscription between %s and %s", inviter_username, contact_username);
subscribe_both(module.host, inviter_username, contact_username);
+ rostermanager.roster_push(inviter_username, module.host, contact_username.."@"..module.host);
end
if validated_invite.additional_data then