mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-18 17:24:31 +01:00
Fix dialyzer errors
This commit is contained in:
parent
eb6f242d99
commit
e589265921
@ -76,15 +76,15 @@
|
|||||||
remote_user :: binary() | undefined,
|
remote_user :: binary() | undefined,
|
||||||
client_state}).
|
client_state}).
|
||||||
|
|
||||||
-record(multi,
|
|
||||||
{users :: #{}}).
|
|
||||||
|
|
||||||
-record(multi_user,
|
-record(multi_user,
|
||||||
{join_ts :: integer()}).
|
{join_ts :: integer()}).
|
||||||
|
|
||||||
|
-record(multi,
|
||||||
|
{users :: #{{binary(), binary()} => #{binary() => #multi_user{}}}}).
|
||||||
|
|
||||||
-record(data,
|
-record(data,
|
||||||
{host :: binary(),
|
{host :: binary(),
|
||||||
kind :: #direct{} | undefined,
|
kind :: #direct{} | #multi{} | undefined,
|
||||||
room_id :: binary(),
|
room_id :: binary(),
|
||||||
room_jid :: jid(),
|
room_jid :: jid(),
|
||||||
room_version :: #room_version{},
|
room_version :: #room_version{},
|
||||||
@ -790,7 +790,7 @@ handle_event(cast, {join, UserJID, Packet}, _State, Data) ->
|
|||||||
{stop, normal};
|
{stop, normal};
|
||||||
_ ->
|
_ ->
|
||||||
?DEBUG("failed make_join: ~p", [MakeJoinRes]),
|
?DEBUG("failed make_join: ~p", [MakeJoinRes]),
|
||||||
Txt = "make_join failed",
|
Txt = <<"make_join failed">>,
|
||||||
Err = xmpp:err_bad_request(Txt, Lang),
|
Err = xmpp:err_bad_request(Txt, Lang),
|
||||||
ejabberd_router:route_error(Packet, Err),
|
ejabberd_router:route_error(Packet, Err),
|
||||||
{stop, normal}
|
{stop, normal}
|
||||||
@ -2743,7 +2743,7 @@ notify_event_xmpp(
|
|||||||
error ->
|
error ->
|
||||||
Data
|
Data
|
||||||
end;
|
end;
|
||||||
error ->
|
_ ->
|
||||||
Data
|
Data
|
||||||
end;
|
end;
|
||||||
notify_event_xmpp(_Event, Data) ->
|
notify_event_xmpp(_Event, Data) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user