25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

mod_push: Fix disabling of notifications

Remove the correct field from the c2s state when the client explicitly
disables push notifications.  This fixes a regression introduced by
commit c148ab4430.
This commit is contained in:
Holger Weiss 2023-12-08 18:52:53 +01:00
parent 7d4330b57a
commit 6b2b89da78

View File

@ -458,7 +458,7 @@ c2s_handle_cast(State, {push_enable, ID}) ->
{stop, State#{push_enabled => true, {stop, State#{push_enabled => true,
push_session_id => ID}}; push_session_id => ID}};
c2s_handle_cast(State, push_disable) -> c2s_handle_cast(State, push_disable) ->
State1 = maps:remove(push_disable, State), State1 = maps:remove(push_enabled, State),
State2 = maps:remove(push_session_id, State1), State2 = maps:remove(push_session_id, State1),
{stop, State2}; {stop, State2};
c2s_handle_cast(State, _Msg) -> c2s_handle_cast(State, _Msg) ->