mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Apply cosmetic changes to previous commit
This commit is contained in:
parent
13ad754ecc
commit
ba9a79c89c
@ -317,8 +317,8 @@ get_session_sids(User, Server) ->
|
||||
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.
|
||||
|
||||
|
@ -546,7 +546,6 @@ delete_sessions(LUser, LServer, LookupFun, Mod) ->
|
||||
-> [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].
|
||||
|
||||
|
@ -134,6 +134,8 @@ mam_slave(Config) ->
|
||||
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"),
|
||||
|
Loading…
Reference in New Issue
Block a user