Skip to content

Commit

Permalink
mod_push: Fix disabling of notifications
Browse files Browse the repository at this point in the history
Remove the correct field from the c2s state when the client explicitly
disables push notifications.  This fixes a regression introduced by
commit c148ab4.
  • Loading branch information
weiss committed Dec 8, 2023
1 parent 7d4330b commit 6b2b89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_push.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit 6b2b89d

Please sign in to comment.