mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 13:09:46 +01:00
format code + remove unused import
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
c873899a71
commit
7a7ceb8714
@ -38,8 +38,6 @@ import kotlinx.coroutines.flow.MutableSharedFlow
|
|||||||
import kotlinx.coroutines.flow.first
|
import kotlinx.coroutines.flow.first
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import java.lang.Thread.sleep
|
|
||||||
import java.util.concurrent.TimeUnit
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class OfflineFirstChatRepository @Inject constructor(
|
class OfflineFirstChatRepository @Inject constructor(
|
||||||
@ -392,29 +390,29 @@ class OfflineFirstChatRepository @Inject constructor(
|
|||||||
Integer.parseInt(it)
|
Integer.parseInt(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
return@map Pair(
|
return@map Pair(
|
||||||
HTTP_CODE_OK,
|
HTTP_CODE_OK,
|
||||||
(it.body() as ChatOverall).ocs!!.data!!
|
(it.body() as ChatOverall).ocs!!.data!!
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTP_CODE_NOT_MODIFIED -> {
|
HTTP_CODE_NOT_MODIFIED -> {
|
||||||
Log.d(TAG, "getMessagesFromServer HTTP_CODE_NOT_MODIFIED")
|
Log.d(TAG, "getMessagesFromServer HTTP_CODE_NOT_MODIFIED")
|
||||||
|
|
||||||
return@map Pair(
|
return@map Pair(
|
||||||
HTTP_CODE_NOT_MODIFIED,
|
HTTP_CODE_NOT_MODIFIED,
|
||||||
listOf<ChatMessageJson>()
|
listOf<ChatMessageJson>()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTP_CODE_PRECONDITION_FAILED -> {
|
HTTP_CODE_PRECONDITION_FAILED -> {
|
||||||
Log.d(TAG, "getMessagesFromServer HTTP_CODE_PRECONDITION_FAILED")
|
Log.d(TAG, "getMessagesFromServer HTTP_CODE_PRECONDITION_FAILED")
|
||||||
|
|
||||||
return@map Pair(
|
return@map Pair(
|
||||||
HTTP_CODE_PRECONDITION_FAILED,
|
HTTP_CODE_PRECONDITION_FAILED,
|
||||||
listOf<ChatMessageJson>()
|
listOf<ChatMessageJson>()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
return@map Pair(
|
return@map Pair(
|
||||||
|
Loading…
Reference in New Issue
Block a user