Skip to content

Commit

Permalink
Add missing scope
Browse files Browse the repository at this point in the history
Co-authored-by: Abdourahamane Boinaidi <abdourahamane.boinaidi@infomaniak.com>
  • Loading branch information
LunarX and sirambd committed Mar 13, 2024
1 parent 0428c3b commit 1ba1045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/infomaniak/drive/ui/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ class MainViewModel(appContext: Application) : AndroidViewModel(appContext) {
UploadFile.getCurrentUserPendingUploadFile(folderId)
.toFlow()
.mapLatest { list -> list.count() }
.asLiveData()
.asLiveData(viewModelScope.coroutineContext + Dispatchers.IO)

.distinctUntilChanged()
}

Expand Down

0 comments on commit 1ba1045

Please sign in to comment.