Refresh conversation archive toast timer when another conversation is archived

This commit is contained in:
Moez Bhatti
2018-02-06 23:03:38 -05:00
parent cfc0ed7ea7
commit 105021f3b7
@@ -226,7 +226,7 @@ class MainViewModel : QkViewModel<MainView, MainState>(MainState()) {
}
}
})
.flatMap { Observable.timer(2750, TimeUnit.MILLISECONDS) }
.switchMap { Observable.timer(2750, TimeUnit.MILLISECONDS) }
.withLatestFrom(state, { threadId, state ->
markArchived.execute(threadId) {
if (state.page is Inbox) {