mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Fix ktlint issues
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
df5c0044c1
commit
cf91e2390e
@ -8,7 +8,6 @@ import androidx.lifecycle.ViewModelProvider
|
|||||||
import com.nextcloud.talk.adapters.SharedItemsAdapter
|
import com.nextcloud.talk.adapters.SharedItemsAdapter
|
||||||
import com.nextcloud.talk.databinding.ActivitySharedItemsBinding
|
import com.nextcloud.talk.databinding.ActivitySharedItemsBinding
|
||||||
import com.nextcloud.talk.models.database.UserEntity
|
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_CONVERSATION_NAME
|
||||||
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
|
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
|
||||||
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_USER_ENTITY
|
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>) {
|
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"]!!
|
chatLastGiven = response.headers()["x-chat-last-given"]!!
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,11 @@ class SharedItemsViewModel(private val repository: SharedItemsRepository) : View
|
|||||||
|
|
||||||
override fun onComplete() {
|
override fun onComplete() {
|
||||||
this@SharedItemsViewModel._media.value =
|
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 New Issue
Block a user