mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
Fix ktlint issues
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
df5c0044c1
commit
cf91e2390e
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue