diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:35:02 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:35:02 +0000 |
commit | 24a8ca2e010f368e469d5a3c542aa3e69f5bef25 (patch) | |
tree | 9b1440cd161a103d566d9f07830a0a8aaf8f097d /plugins/mod_groups.lua | |
parent | 117d917dfa718b6c65fcaa6b3404ecfa90983591 (diff) | |
download | prosody-24a8ca2e010f368e469d5a3c542aa3e69f5bef25.tar.gz prosody-24a8ca2e010f368e469d5a3c542aa3e69f5bef25.zip |
mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned
Diffstat (limited to 'plugins/mod_groups.lua')
-rw-r--r-- | plugins/mod_groups.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 |