aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 54ebdc7cf..137df086a 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -3238,11 +3238,12 @@ max_items(Host, Options) ->
binary(), [binary()]) -> [xdata_field()].
get_configure_xfields(_Type, Options, Lang, Groups) ->
pubsub_node_config:encode(
- lists:map(
+ lists:filtermap(
fun({roster_groups_allowed, Value}) ->
- {roster_groups_allowed, Value, Groups};
- (Opt) ->
- Opt
+ {true, {roster_groups_allowed, Value, Groups}};
+ ({sql, _}) -> false;
+ ({rsm, _}) -> false;
+ (_) -> true
end, Options),
Lang).