Fix ktlint issues

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-04-27 13:36:58 +02:00
parent df5c0044c1
commit cf91e2390e
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E
2 changed files with 6 additions and 3 deletions

View file

@ -8,7 +8,6 @@ import androidx.lifecycle.ViewModelProvider
import com.nextcloud.talk.adapters.SharedItemsAdapter
import com.nextcloud.talk.databinding.ActivitySharedItemsBinding
import com.nextcloud.talk.models.database.UserEntity
import com.nextcloud.talk.utils.bundle.BundleKeys
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_CONVERSATION_NAME
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_USER_ENTITY

View file

@ -40,7 +40,7 @@ class SharedItemsViewModel(private val repository: SharedItemsRepository) : View
override fun onNext(response: Response<ChatShareOverall>) {
if(response.headers()["x-chat-last-given"] != null) {
if (response.headers()["x-chat-last-given"] != null) {
chatLastGiven = response.headers()["x-chat-last-given"]!!
}
@ -65,7 +65,11 @@ class SharedItemsViewModel(private val repository: SharedItemsRepository) : View
override fun onComplete() {
this@SharedItemsViewModel._media.value =
SharedMediaItems(items.toSortedMap().values.toList().reversed(), chatLastGiven, repository.authHeader())
SharedMediaItems(
items.toSortedMap().values.toList().reversed(),
chatLastGiven,
repository.authHeader()
)
}
})
}