fix deleting media attachments removing the wrong ones (#2517)

This commit is contained in:
Konrad Pozniak 2022-05-12 18:21:43 +02:00 committed by GitHub
parent b8e3b6b884
commit d9c6269d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class ComposeViewModel @Inject constructor(
fun removeMediaFromQueue(item: QueuedMedia) {
mediaToJob[item.localId]?.cancel()
media.update { mediaValue -> mediaValue.filter { it.localId == item.localId } }
media.update { mediaValue -> mediaValue.filter { it.localId != item.localId } }
}
fun toggleMarkSensitive() {