comparison mod_groups_migration/mod_groups_migration.lua @ 4391:679a0c9d365d

mod_groups_migration: initialise the group with a MUC
author Jonas Schäfer <jonas@wielicki.name>
date Tue, 26 Jan 2021 15:37:52 +0100
parents e5b4ebacbf7a
children dd3bfe8f182e
comparison
equal deleted inserted replaced
4390:17d44ba8fde2 4391:679a0c9d365d
10 return 10 return
11 end 11 end
12 module:log("info", "migrating to mod_groups!") 12 module:log("info", "migrating to mod_groups!")
13 13
14 local group_id = default_group_id; 14 local group_id = default_group_id;
15 local ok, err = mod_groups.create({name="default"}, false, group_id); 15 local ok, err = mod_groups.create({name="default"}, true, group_id);
16 if not ok then 16 if not ok then
17 module:log("error", "failed to create group: %s", err) 17 module:log("error", "failed to create group: %s", err)
18 return 18 return
19 end 19 end
20 20