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

account service: schedule loadConversationMessages on io pool

Change-Id: I958c8fc56447db223a03b53c2b5b55c2d8ff11a2
parent 89bc588a
No related branches found
No related tags found
No related merge requests found
......@@ -450,7 +450,9 @@ class AccountService(
.subscribeOn(Schedulers.from(mExecutor))
private fun loadConversationHistory(accountId: String, conversationUri: Uri, root: String, n: Long) =
JamiService.loadConversationMessages(accountId, conversationUri.rawRingId, root, n)
Schedulers.io().run {
JamiService.loadConversationMessages(accountId, conversationUri.rawRingId, root, n)
}
fun loadMore(conversation: Conversation, n: Int = 32): Single<Conversation> {
synchronized(conversation) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment