Software /
code /
prosody
Changeset
12391:a15647d42880 0.12
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Mar 2022 21:59:51 +0100 |
parents | 12390:71b5c9b8b07a |
children | 12392:5373724e08a5 |
files | plugins/mod_invites_register.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_invites_register.lua Fri Mar 11 20:33:03 2022 +0000 +++ b/plugins/mod_invites_register.lua Tue Mar 15 21:59:51 2022 +0100 @@ -141,6 +141,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