mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-25 14:24:55 +02:00
PubSub: broadcast updated configuration (#1945)
This commit is contained in:
parent
5bf64381cb
commit
7ad525b542
@ -3199,8 +3199,8 @@ set_configure(Host, Node, From, Config, Lang) ->
|
|||||||
case tree_call(Host,
|
case tree_call(Host,
|
||||||
set_node,
|
set_node,
|
||||||
[N#pubsub_node{options = NewOpts}]) of
|
[N#pubsub_node{options = NewOpts}]) of
|
||||||
{result, Nidx} -> {result, ok};
|
{result, Nidx} -> {result, NewOpts};
|
||||||
ok -> {result, ok};
|
ok -> {result, NewOpts};
|
||||||
Err -> Err
|
Err -> Err
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
@ -3209,10 +3209,9 @@ set_configure(Host, Node, From, Config, Lang) ->
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
case transaction(Host, Node, Action, transaction) of
|
case transaction(Host, Node, Action, transaction) of
|
||||||
{result, {TNode, ok}} ->
|
{result, {TNode, Options}} ->
|
||||||
Nidx = TNode#pubsub_node.id,
|
Nidx = TNode#pubsub_node.id,
|
||||||
Type = TNode#pubsub_node.type,
|
Type = TNode#pubsub_node.type,
|
||||||
Options = TNode#pubsub_node.options,
|
|
||||||
broadcast_config_notification(Host, Node, Nidx, Type, Options, Lang),
|
broadcast_config_notification(Host, Node, Nidx, Type, Options, Lang),
|
||||||
{result, undefined};
|
{result, undefined};
|
||||||
Other ->
|
Other ->
|
||||||
|
Loading…
Reference in New Issue
Block a user