mod_groups: Fixes to make compatible with roster versioning - set version to 'true' to indicate that the roster is not being versioned

Mon, 22 Mar 2010 14:35:02 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 22 Mar 2010 14:35:02 +0000
changeset 2912
f5a5317f3485
parent 2911
30895e419e92
child 2913
3d4e814cadfa

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 file | annotate | diff | comparison | revisions
--- a/plugins/mod_groups.lua	Mon Mar 22 14:33:38 2010 +0000
+++ b/plugins/mod_groups.lua	Mon Mar 22 14:35:02 2010 +0000
@@ -53,6 +53,10 @@
 			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 @@
 				new_roster[jid] = contact;
 			end
 		end
+		new_roster[false].version = nil; -- Version is void
 		return username, host, datastore, new_roster;
 	end
 

mercurial