From ba11d641910a93c898832ed36c3dc783c33ac06f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 15 Mar 2022 21:59:51 +0100 Subject: 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 --- plugins/mod_invites_register.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3