Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
00016c0d
Commit
00016c0d
authored
4 weeks ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
conversation: read messages from computation thread
Change-Id: I2f2ccdafd4a9bfcd9fa7ce9f8bd78ea847907b43
parent
1ba501ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jami-android/libjamiclient/src/main/kotlin/net/jami/conversation/ConversationPresenter.kt
+8
-2
8 additions, 2 deletions
...ain/kotlin/net/jami/conversation/ConversationPresenter.kt
with
8 additions
and
2 deletions
jami-android/libjamiclient/src/main/kotlin/net/jami/conversation/ConversationPresenter.kt
+
8
−
2
View file @
00016c0d
...
@@ -16,8 +16,10 @@
...
@@ -16,8 +16,10 @@
*/
*/
package
net.jami.conversation
package
net.jami.conversation
import
io.reactivex.rxjava3.core.Completable
import
io.reactivex.rxjava3.core.Observable
import
io.reactivex.rxjava3.core.Observable
import
io.reactivex.rxjava3.core.Scheduler
import
io.reactivex.rxjava3.core.Scheduler
import
io.reactivex.rxjava3.core.Single
import
io.reactivex.rxjava3.disposables.CompositeDisposable
import
io.reactivex.rxjava3.disposables.CompositeDisposable
import
io.reactivex.rxjava3.schedulers.Schedulers
import
io.reactivex.rxjava3.schedulers.Schedulers
import
io.reactivex.rxjava3.subjects.BehaviorSubject
import
io.reactivex.rxjava3.subjects.BehaviorSubject
...
@@ -117,8 +119,12 @@ class ConversationPresenter @Inject constructor(
...
@@ -117,8 +119,12 @@ class ConversationPresenter @Inject constructor(
.
subscribe
({
conversation
:
Conversation
->
.
subscribe
({
conversation
:
Conversation
->
conversation
.
isVisible
=
true
conversation
.
isVisible
=
true
conversation
.
isBubble
=
isBubble
conversation
.
isBubble
=
isBubble
mCompositeDisposable
.
add
(
Completable
.
fromAction
{
accountService
.
getAccount
(
conversation
.
accountId
)
?.
let
{
account
->
accountService
.
getAccount
(
conversation
.
accountId
)
?.
let
{
account
->
conversationFacade
.
readMessages
(
account
,
conversation
,
!
isBubble
)}
conversationFacade
.
readMessages
(
account
,
conversation
,
!
isBubble
)}
}
.
subscribeOn
(
Schedulers
.
computation
())
.
subscribe
())
})
{
e
->
Log
.
e
(
TAG
,
"Error loading conversation"
,
e
)
})
})
{
e
->
Log
.
e
(
TAG
,
"Error loading conversation"
,
e
)
})
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment