fix deleting media attachments removing the wrong ones (#2517)
This commit is contained in:
parent
b8e3b6b884
commit
d9c6269d44
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue