mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Load roster on resource bind
This commit is contained in:
parent
e6b3e32fb7
commit
e00ee96830
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ local modulemanager = require "core.modulemanager";
|
|||
local log = require "util.logger".init("sessionmanager");
|
||||
local error = error;
|
||||
local uuid_generate = require "util.uuid".uuid_generate;
|
||||
local rm_getroster = require "core.rostermanager".getroster
|
||||
|
||||
local newproxy = newproxy;
|
||||
local getmetatable = getmetatable;
|
||||
|
@ -91,6 +92,8 @@ function bind_resource(session, resource)
|
|||
session.full_jid = session.username .. '@' .. session.host .. '/' .. resource;
|
||||
hosts[session.host].sessions[session.username].sessions[resource] = session;
|
||||
|
||||
session.roster = rm_getroster(session.username, session.host);
|
||||
|
||||
return true;
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue