mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-01 16:38:13 +02:00
moves markasread from io to default
This commit is contained in:
parent
e0849b12e7
commit
f646866192
@ -44,6 +44,7 @@ import com.vitorpamplona.amethyst.model.AccountState
|
||||
import com.vitorpamplona.amethyst.model.AddressableNote
|
||||
import com.vitorpamplona.amethyst.model.Channel
|
||||
import com.vitorpamplona.amethyst.model.LocalCache
|
||||
import com.vitorpamplona.amethyst.model.LocalCache.notes
|
||||
import com.vitorpamplona.amethyst.model.Note
|
||||
import com.vitorpamplona.amethyst.model.UrlCachedPreviewer
|
||||
import com.vitorpamplona.amethyst.model.User
|
||||
@ -1132,7 +1133,7 @@ class AccountViewModel(
|
||||
val onIsNew = createdAt > lastTime
|
||||
|
||||
if (onIsNew) {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
viewModelScope.launch(Dispatchers.Default) {
|
||||
if (account.markAsRead(routeForLastRead, createdAt)) {
|
||||
refreshMarkAsReadObservers()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user