mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-11 15:08:56 +02:00
When creating room, set option to ensure config is set in muc_room table (#1954)
This commit is contained in:
parent
2fa6e2fd90
commit
05c2995c7a
@ -536,7 +536,8 @@ prepare_room_info(Room_info) ->
|
||||
%% ok | error
|
||||
%% @doc Create a room immediately with the default options.
|
||||
create_room(Name1, Host1, ServerHost) ->
|
||||
create_room_with_opts(Name1, Host1, ServerHost, []).
|
||||
create_room_with_opts(Name1, Host1, ServerHost, []),
|
||||
change_room_option(Name1, Host1, <<"persistent">>, <<"true">>).
|
||||
|
||||
create_room_with_opts(Name1, Host1, ServerHost, CustomRoomOpts) ->
|
||||
true = (error /= (Name = jid:nodeprep(Name1))),
|
||||
|
Loading…
Reference in New Issue
Block a user