mod_muc_room.hrl: Work around old Dialyzer bug

On Erlang/OTP versions older than 21, Dialyzer stumbles over non-empty
map type specifications for record fields (OTP-15098).
This commit is contained in:
Holger Weiss 2021-10-31 21:59:00 +01:00
parent 13cbd7c35d
commit c4f6c9dfe7
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@
history = #lqueue{} :: lqueue(),
subject = [] :: [text()],
subject_author = <<"">> :: binary(),
hats_users = #{} :: #{ljid() => #{binary() => binary()}},
hats_users = #{} :: map(), % FIXME on OTP 21+: #{ljid() => #{binary() => binary()}},
just_created = erlang:system_time(microsecond) :: true | integer(),
activity = treap:empty() :: treap:treap(),
room_shaper = none :: ejabberd_shaper:shaper(),