]> granicus.if.org Git - ejabberd/commitdiff
Apply cosmetic changes to previous commit
authorHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 18 Aug 2017 14:50:08 +0000 (16:50 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Fri, 18 Aug 2017 14:50:08 +0000 (16:50 +0200)
src/ejabberd_sm.erl
src/mod_push.erl
test/push_tests.erl

index d93e66473e896c3f75bcc1136130651413fcf5d8..96dbb4e8300a1d5b9f273d9f184ddb7ea89c5fa3 100644 (file)
@@ -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.
 
index 90f4ba55ebe9ed1af3d4579541c8ea72100c10ec..2ca0bf52576d00ec1abefa7997b6f154f27eae80 100644 (file)
@@ -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].
 
index 04840bad55d0869c8535bf3db3e01ba9a0bf955a..b1f3a8b786a356c149a64a081a65e432c55b5c71 100644 (file)
@@ -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"),