Mercurial > prosody-modules
changeset 1508:f7cb287dd3c7
mod_roster_command: Also initialize usermanager
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 Sep 2014 11:31:41 +0200 (2014-09-20) |
parents | 6ea13869753f |
children | 01e37ce7532e |
files | mod_roster_command/mod_roster_command.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_roster_command/mod_roster_command.lua Tue Sep 16 19:55:54 2014 +0200 +++ b/mod_roster_command/mod_roster_command.lua Sat Sep 20 11:31:41 2014 +0200 @@ -34,11 +34,13 @@ return; end storagemanager.initialize_host(user_host); + usermanager.initialize_host(user_host); -- Update user's roster to say subscription request is pending... rostermanager.set_contact_pending_out(user_username, user_host, contact_jid); if hosts[contact_host] then if contact_host ~= user_host then storagemanager.initialize_host(contact_host); + usermanager.initialize_host(contact_host); end -- Update contact's roster to say subscription request is pending... rostermanager.set_contact_pending_in(contact_username, contact_host, user_jid); @@ -65,11 +67,13 @@ return; end storagemanager.initialize_host(user_host); + usermanager.initialize_host(user_host); -- Update user's roster to say subscription is cancelled... rostermanager.unsubscribe(user_username, user_host, contact_jid); if hosts[contact_host] then if contact_host ~= user_host then storagemanager.initialize_host(contact_host); + usermanager.initialize_host(contact_host); end -- Update contact's roster to say subscription is cancelled... rostermanager.unsubscribed(contact_username, contact_host, user_jid); @@ -90,6 +94,7 @@ return; end storagemanager.initialize_host(user_host); + usermanager.initialize_host(user_host); -- Load user's roster and find the contact local roster = rostermanager.load_roster(user_username, user_host);