Skip to content
Snippets Groups Projects
Commit f1ca3892 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

contacts: always start with OFFLINE status

Prevents from waiting for disconnected contact status

Change-Id: Ia0a7c964ffa10fc1cfb38b9218ec226a5f7e5566
parent 7a0ab9f7
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,7 @@ abstract class ContactService(
contact.setPresenceEmitter(null)
}
}
.startWithItem(Contact.PresenceStatus.OFFLINE)
.replay(1)
.refCount(5, TimeUnit.SECONDS)
.apply { contact.presenceUpdates = this }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment