Commit c25a06f7 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Load missed messages when logins is completed

parent 789911dd
......@@ -7,6 +7,7 @@ import java.util.List;
import chat.rocket.android.RocketChatCache;
import chat.rocket.android.api.RaixPushHelper;
import chat.rocket.android.helper.LogIfError;
import chat.rocket.android.service.ConnectivityManager;
import chat.rocket.android.service.internal.StreamRoomMessageManager;
import chat.rocket.persistence.realm.RealmHelper;
import chat.rocket.persistence.realm.models.internal.GetUsersOfRoomsProcedure;
......@@ -75,6 +76,8 @@ public class SessionObserver extends AbstractModelObserver<RealmSession> {
pushHelper
.pushSetUser(new RocketChatCache(context).getOrCreatePushId())
.continueWith(new LogIfError());
ConnectivityManager.getInstance(context).notifySessionEstablished(hostname);
}
@DebugLog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment