diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-07-02 01:36:16 +0300 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-07-02 01:36:16 +0300 |
commit | 4045c848c4732add9bd1ef716719523511cdb8e3 (patch) | |
tree | f7fead01eacaed666ff55897eaee85cd19be17d7 /test | |
parent | 3267d4c923cccf806ca35452cf9a9bc642b84fc7 (diff) |
Send notifications on MUC configuration changes
Notify clients when the room configuration changes, as mandated by
XEP-0045, #10.2.1.
Closes #623.
Diffstat (limited to 'test')
-rw-r--r-- | test/ejabberd_SUITE.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 4d1a1fc7b..dc528d79a 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -1122,10 +1122,11 @@ muc_master(Config) -> end end, RoomCfg#xdata.fields), NewRoomCfg = #xdata{type = submit, fields = NewFields}, - %% BUG: We should not receive any sub_els! - #iq{type = result, sub_els = [_|_]} = - send_recv(Config, #iq{type = set, to = Room, - sub_els = [#muc_owner{config = NewRoomCfg}]}), + ID = send(Config, #iq{type = set, to = Room, + sub_els = [#muc_owner{config = NewRoomCfg}]}), + ?recv2(#iq{type = result, id = ID}, + #message{from = Room, type = groupchat, + sub_els = [#muc_user{status_codes = [104]}]}), %% Set subject send(Config, #message{to = Room, type = groupchat, body = [#text{data = Subject}]}), |