ComposeViewModel: remove unused variable (#2060)
This commit is contained in:
parent
b00aa9b461
commit
455942505c
1 changed files with 1 additions and 3 deletions
|
@ -271,12 +271,10 @@ class ComposeViewModel @Inject constructor(
|
|||
val mediaIds = ArrayList<String>()
|
||||
val mediaUris = ArrayList<Uri>()
|
||||
val mediaDescriptions = ArrayList<String>()
|
||||
val mediaTypes = ArrayList<QueuedMedia.Type>()
|
||||
for (item in media.value!!) {
|
||||
mediaIds.add(item.id!!)
|
||||
mediaUris.add(item.uri)
|
||||
mediaDescriptions.add(item.description ?: "")
|
||||
mediaTypes.add(item.type)
|
||||
}
|
||||
|
||||
val tootToSend = TootToSend(
|
||||
|
@ -504,4 +502,4 @@ data class ComposeInstanceParams(
|
|||
/**
|
||||
* Thrown when trying to add an image when video is already present or the other way around
|
||||
*/
|
||||
class VideoOrImageException : Exception()
|
||||
class VideoOrImageException : Exception()
|
||||
|
|
Loading…
Reference in a new issue