From 24a8ca2e010f368e469d5a3c542aa3e69f5bef25 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 22 Mar 2010 14:35:02 +0000 Subject: mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned --- plugins/mod_groups.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua index 7ef0d138..69a4dcdc 100644 --- a/plugins/mod_groups.lua +++ b/plugins/mod_groups.lua @@ -53,6 +53,10 @@ function inject_roster_contacts(username, host, roster) import_jids_to_roster(group_name); end end + + if roster[false] then + roster[false].version = true; + end end function remove_virtual_contacts(username, host, datastore, data) @@ -63,6 +67,7 @@ function remove_virtual_contacts(username, host, datastore, data) new_roster[jid] = contact; end end + new_roster[false].version = nil; -- Version is void return username, host, datastore, new_roster; end -- cgit v1.2.3