mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +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:
parent
7d4330b57a
commit
6b2b89da78
@ -458,7 +458,7 @@ c2s_handle_cast(State, {push_enable, ID}) ->
|
||||
{stop, State#{push_enabled => true,
|
||||
push_session_id => ID}};
|
||||
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),
|
||||
{stop, State2};
|
||||
c2s_handle_cast(State, _Msg) ->
|
||||
|
Loading…
Reference in New Issue
Block a user