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
1 changed files with 2 additions and 0 deletions

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};