diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-09-18 12:48:20 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-09-18 12:48:20 +0200 |
commit | 7ad525b542b0c327687254a962af918fab51b8fb (patch) | |
tree | b6f211fcd5f5ff4a4103fc229e58047c305737b2 /src/mod_pubsub.erl | |
parent | Add 'width' and 'height' to avatar info (diff) |
PubSub: broadcast updated configuration (#1945)
Diffstat (limited to 'src/mod_pubsub.erl')
-rw-r--r-- | src/mod_pubsub.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 9ed5e65b..668dc9bf 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -3199,8 +3199,8 @@ set_configure(Host, Node, From, Config, Lang) -> case tree_call(Host, set_node, [N#pubsub_node{options = NewOpts}]) of - {result, Nidx} -> {result, ok}; - ok -> {result, ok}; + {result, Nidx} -> {result, NewOpts}; + ok -> {result, NewOpts}; Err -> Err end; _ -> @@ -3209,10 +3209,9 @@ set_configure(Host, Node, From, Config, Lang) -> end end, case transaction(Host, Node, Action, transaction) of - {result, {TNode, ok}} -> + {result, {TNode, Options}} -> Nidx = TNode#pubsub_node.id, Type = TNode#pubsub_node.type, - Options = TNode#pubsub_node.options, broadcast_config_notification(Host, Node, Nidx, Type, Options, Lang), {result, undefined}; Other -> |