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

Allow to update state from muc_process_iq hook

This commit is contained in:
Paweł Chmielowski 2023-04-17 16:57:54 +02:00
parent 1114a35e0a
commit 70cbdd1117

View File

@ -474,6 +474,8 @@ normal_state({route, <<"">>,
[StateData]) of
ignore ->
{next_state, normal_state, StateData};
{ignore, StateData2} ->
{next_state, normal_state, StateData2};
#iq{type = T} = IQRes when T == error; T == result ->
ejabberd_router:route(IQRes),
{next_state, normal_state, StateData};