Do not forget sending initial presence in XEP-0013 test

This commit is contained in:
Evgeniy Khramtsov 2016-02-11 11:53:33 +03:00
parent 17be70339c
commit 8e6adb4b3c
1 changed files with 4 additions and 0 deletions

View File

@ -1496,6 +1496,10 @@ flex_offline_slave(Config) ->
when (J == MyBareJID) and (P == Peer_s) ->
N
end, DiscoItems)),
%% Since headers are received we can send initial presence without a risk
%% of getting offline messages flood
send(Config, #presence{}),
?recv1(#presence{from = MyJID}),
%% Check full fetch
I0 = send(Config, #iq{type = get, sub_els = [#offline{fetch = true}]}),
lists:foreach(