From 50b57ada7c102f3c2e372929f584c00bca090bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Sautret?= Date: Wed, 18 Dec 2024 16:22:21 +0100 Subject: [PATCH] Revert "Fix dialyzer errors" This reverts commit e58926592132b51b8532b907553eaf6760e6fe84. --- src/mod_matrix_gw_room.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mod_matrix_gw_room.erl b/src/mod_matrix_gw_room.erl index 90ecfec3f..1cb0d892b 100644 --- a/src/mod_matrix_gw_room.erl +++ b/src/mod_matrix_gw_room.erl @@ -76,15 +76,15 @@ remote_user :: binary() | undefined, client_state}). +-record(multi, + {users :: #{}}). + -record(multi_user, {join_ts :: integer()}). --record(multi, - {users :: #{{binary(), binary()} => #{binary() => #multi_user{}}}}). - -record(data, {host :: binary(), - kind :: #direct{} | #multi{} | undefined, + kind :: #direct{} | undefined, room_id :: binary(), room_jid :: jid(), room_version :: #room_version{}, @@ -790,7 +790,7 @@ handle_event(cast, {join, UserJID, Packet}, _State, Data) -> {stop, normal}; _ -> ?DEBUG("failed make_join: ~p", [MakeJoinRes]), - Txt = <<"make_join failed">>, + Txt = "make_join failed", Err = xmpp:err_bad_request(Txt, Lang), ejabberd_router:route_error(Packet, Err), {stop, normal} @@ -2743,7 +2743,7 @@ notify_event_xmpp( error -> Data end; - _ -> + error -> Data end; notify_event_xmpp(_Event, Data) ->