25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

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

View File

@ -125,7 +125,7 @@
history = #lqueue{} :: lqueue(), history = #lqueue{} :: lqueue(),
subject = [] :: [text()], subject = [] :: [text()],
subject_author = <<"">> :: binary(), 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(), just_created = erlang:system_time(microsecond) :: true | integer(),
activity = treap:empty() :: treap:treap(), activity = treap:empty() :: treap:treap(),
room_shaper = none :: ejabberd_shaper:shaper(), room_shaper = none :: ejabberd_shaper:shaper(),