LUser = jid:nodeprep(User),
LServer = jid:nameprep(Server),
Mod = get_sm_backend(LServer),
- OnlineSs = online(get_sessions(Mod, LUser, LServer)),
- [SID || #session{sid = SID} <- OnlineSs].
+ Sessions = online(get_sessions(Mod, LUser, LServer)),
+ [SID || #session{sid = SID} <- Sessions].
-spec set_offline_info(sid(), binary(), binary(), binary(), info()) -> ok.
-> [push_session()].
drop_online_sessions(LUser, LServer, Clients) ->
SessIDs = ejabberd_sm:get_session_sids(LUser, LServer),
- ?WARNING_MSG("SessIDs: ~p", [SessIDs]),
[Client || {TS, _, _, _} = Client <- Clients,
lists:keyfind(TS, 1, SessIDs) == false].
self_presence(Config, available),
ct:comment("Receiving message from offline storage"),
recv_test_message(Config),
+ %% Don't re-enable push notifications, otherwise the notification would be
+ %% suppressed while the slave is online.
ct:comment("Enabling MAM"),
ok = enable_mam(Config),
ct:comment("Letting the master know that we're ready"),