fix deleting media attachments removing the wrong ones (#2517)
This commit is contained in:
parent
b8e3b6b884
commit
d9c6269d44
|
@ -184,7 +184,7 @@ class ComposeViewModel @Inject constructor(
|
||||||
|
|
||||||
fun removeMediaFromQueue(item: QueuedMedia) {
|
fun removeMediaFromQueue(item: QueuedMedia) {
|
||||||
mediaToJob[item.localId]?.cancel()
|
mediaToJob[item.localId]?.cancel()
|
||||||
media.update { mediaValue -> mediaValue.filter { it.localId == item.localId } }
|
media.update { mediaValue -> mediaValue.filter { it.localId != item.localId } }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun toggleMarkSensitive() {
|
fun toggleMarkSensitive() {
|
||||||
|
|
Loading…
Reference in New Issue