Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
gustawlippa committed Nov 8, 2024
1 parent ea69089 commit 23f84ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/muc_light/mod_muc_light_db_mnesia.erl
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ destroy_room_transaction(RoomUS) ->
mod_muc_light_db_backend:remove_user_return().
remove_user_transaction(HostType, UserUS, Version) ->
lists:map(
fun(#muc_light_user_room{ room = RoomUS }) ->
{RoomUS, modify_aff_users_transaction(
HostType, RoomUS, [{UserUS, none}], fun(_, _) -> ok end, Version)}
end, mnesia:read(muc_light_user_room, UserUS)).
fun(#muc_light_user_room{room = RoomUS}) ->
Res = modify_aff_users_transaction(
HostType, RoomUS, [{UserUS, none}], fun(_, _) -> ok end, Version),
{RoomUS, Res}
end,
mnesia:read(muc_light_user_room, UserUS)).

%% ------------------------ Configuration manipulation ------------------------

Expand Down

0 comments on commit 23f84ca

Please sign in to comment.