Skip to content

Commit

Permalink
Fixing mod_roster_backend to allow optional callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Jakubiec authored and Janusz Jakubiec committed Oct 27, 2021
1 parent 42ed2ab commit d653ba0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mod_roster_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ remove_user_t(HostType, LUser, LServer) ->
-spec remove_domain_t(mongooseim:host_type(), jid:lserver()) -> ok.
remove_domain_t(HostType, LServer) ->
Args = [HostType, LServer],
mongoose_backend:call(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).
case mongoose_backend:is_exported(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, 2) of
true ->
mongoose_backend:call(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args);
false ->
ok
end.

0 comments on commit d653ba0

Please sign in to comment.