aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-29 00:07:18 +0200
committerKim Alvefur <zash@zash.se>2017-10-29 00:07:18 +0200
commitfe0803caebaf06e4a43d880bdc2732ddc7eb30b6 (patch)
tree14f5ddb917888a72f027a7f9e5a19269f41a4634
parentc89b416b76781d4b9d7fe4e328516e6cc0b862be (diff)
downloadprosody-im-server-fe0803caebaf06e4a43d880bdc2732ddc7eb30b6.tar
prosody-im-server-fe0803caebaf06e4a43d880bdc2732ddc7eb30b6.zip
rostermanager: Use internal method for storing removal of self-contact
-rw-r--r--core/rostermanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 6acc1003..dda69e7c 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -116,7 +116,7 @@ local function load_roster(username, host)
if roster[jid] then
roster[jid] = nil;
log("debug", "Roster for %s had a self-contact, removing", jid);
- roster_store:set(username, roster);
+ save_roster(username, host, roster, jid);
end
if not err then
hosts[host].events.fire_event("roster-load", { username = username, host = host, roster = roster });