25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

PubSub: broadcast updated configuration (#1945)

This commit is contained in:
Christophe Romain 2017-09-18 12:48:20 +02:00
parent 5bf64381cb
commit 7ad525b542

View File

@ -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 ->