From: Badlop Date: Mon, 15 Aug 2016 13:53:35 +0000 (+0200) Subject: Support sql backend in mod_shared_roster commands (#1244) X-Git-Tag: 16.09~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b4f347da8d3931d62ce4f6d94b4d71e62f1ab34;p=ejabberd Support sql backend in mod_shared_roster commands (#1244) --- diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 8e9ea007f..2bb436f31 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -1315,11 +1315,11 @@ srg_create(Group, Host, Name, Description, Display) -> Opts = [{name, Name}, {displayed_groups, DisplayList}, {description, Description}], - {atomic, ok} = mod_shared_roster:create_group(Host, Group, Opts), + {atomic, _} = mod_shared_roster:create_group(Host, Group, Opts), ok. srg_delete(Group, Host) -> - {atomic, ok} = mod_shared_roster:delete_group(Host, Group), + {atomic, _} = mod_shared_roster:delete_group(Host, Group), ok. srg_list(Host) -> @@ -1342,11 +1342,11 @@ srg_get_members(Group, Host) -> || {MUser, MServer} <- Members]. srg_user_add(User, Host, Group, GroupHost) -> - {atomic, ok} = mod_shared_roster:add_user_to_group(GroupHost, {User, Host}, Group), + {atomic, _} = mod_shared_roster:add_user_to_group(GroupHost, {User, Host}, Group), ok. srg_user_del(User, Host, Group, GroupHost) -> - {atomic, ok} = mod_shared_roster:remove_user_from_group(GroupHost, {User, Host}, Group), + {atomic, _} = mod_shared_roster:remove_user_from_group(GroupHost, {User, Host}, Group), ok.