simple refactoring

This commit is contained in:
Vitor Pamplona
2023-08-04 21:00:07 -04:00
parent 118bc7b73c
commit 75779e7ddc

View File

@@ -50,7 +50,7 @@ fun MessageSetCompose(messageSetCard: MessageSetCard, routeForLastRead: String,
val newItemColor = MaterialTheme.colors.newItemBackgroundColor
LaunchedEffect(key1 = messageSetCard) {
scope.launch(Dispatchers.IO) {
launch(Dispatchers.IO) {
val isNew = messageSetCard.createdAt() > accountViewModel.account.loadLastRead(routeForLastRead)
accountViewModel.account.markAsRead(routeForLastRead, messageSetCard.createdAt())