Skip to content

Commit

Permalink
Ignore presences received without established presence session
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Oct 6, 2022
1 parent 69227de commit f060fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_presence.erl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ user_send_presence(Acc, #{c2s_data := StateData}, _Extra) ->
user_receive_presence(Acc, #{c2s_data := StateData}, _Extra) ->
case get_mod_state(StateData) of
{error, not_found} ->
{ok, Acc};
{stop, Acc};
Presences ->
handle_user_received_presence(Acc, Presences, mongoose_acc:stanza_type(Acc))
end.
Expand Down

0 comments on commit f060fa5

Please sign in to comment.