Changeset

4907:4aecf78cc39d

mod_invites_register: Push invitee contact entry to inviter (Thanks gerald) Invitee would not show up in the roster of the invite creator unless they fetch their roster afterwards. Fixes #1715
author Kim Alvefur <zash@zash.se>
date Tue, 15 Mar 2022 21:59:51 +0100
parents 4906:f07c9a6f19b3
children 4908:44be2c6087f3
files mod_invites_register/mod_invites_register.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_register/mod_invites_register.lua	Tue Mar 08 11:57:25 2022 +0000
+++ b/mod_invites_register/mod_invites_register.lua	Tue Mar 15 21:59:51 2022 +0100
@@ -137,6 +137,7 @@
 	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