mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Test: Check that the message we get is the welcome message, not other
This commit is contained in:
parent
e1b94487ef
commit
cdaf45f91c
@ -897,7 +897,8 @@ presence_broadcast(Config) ->
|
||||
IQ = #iq{type = get,
|
||||
from = JID,
|
||||
sub_els = [#disco_info{node = Node}]} = recv_iq(Config),
|
||||
#message{type = normal} = recv_message(Config),
|
||||
#message{type = normal,
|
||||
subject = [#text{lang = <<"en">>,data = <<"Welcome!">>}]} = recv_message(Config),
|
||||
#presence{from = JID, to = JID} = recv_presence(Config),
|
||||
send(Config, #iq{type = result, id = IQ#iq.id,
|
||||
to = JID, sub_els = [Info]}),
|
||||
|
Loading…
Reference in New Issue
Block a user