mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 13:09:46 +01:00
Kindof works I guess
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7102f4ea54
commit
34d0b14ab0
@ -115,7 +115,7 @@ fun createOkHttpClient(
|
||||
): OkHttpClient {
|
||||
val httpClient = OkHttpClient.Builder()
|
||||
|
||||
httpClient.retryOnConnectionFailure(true)
|
||||
httpClient.retryOnConnectionFailure(false)
|
||||
httpClient.connectTimeout(300, TimeUnit.SECONDS)
|
||||
httpClient.readTimeout(300, TimeUnit.SECONDS)
|
||||
httpClient.writeTimeout(300, TimeUnit.SECONDS)
|
||||
@ -125,7 +125,6 @@ fun createOkHttpClient(
|
||||
|
||||
// Trust own CA and all self-signed certs
|
||||
httpClient.sslSocketFactory(sslSocketFactory, magicTrustManager)
|
||||
httpClient.retryOnConnectionFailure(true)
|
||||
httpClient.hostnameVerifier(magicTrustManager.getHostnameVerifier(OkHostnameVerifier.INSTANCE))
|
||||
|
||||
if (SDK_INT == Build.VERSION_CODES.N) {
|
||||
|
@ -102,11 +102,10 @@ class GlobalService constructor(usersRepository: UsersRepository,
|
||||
|
||||
chatMessage.let { chatMessage ->
|
||||
conversation?.let { conversation ->
|
||||
val currentStatus = chatMessage.chatMessageStatus
|
||||
applicationScope.launch {
|
||||
//messagesRepository.updateMessageStatus(ChatMessageStatus.PROCESSING.ordinal, conversation.databaseId!!, chatMessage.jsonMessageId!!)
|
||||
}
|
||||
currentUser?.let { user ->
|
||||
val currentStatus = chatMessage.chatMessageStatus
|
||||
messagesRepository.updateMessageStatus(ChatMessageStatus.PROCESSING.ordinal, conversation.databaseId!!, chatMessage.jsonMessageId!!)
|
||||
|
||||
if (chatMessage.internalConversationId == conversation.databaseId && conversation.databaseUserId == currentUser.id) {
|
||||
val sendChatMessageUseCase = SendChatMessageUseCase(networkComponents.getRepository(false, user), ApiErrorHandler())
|
||||
val messageToSend = ChatUtils.getParsedMessageForSending(chatMessage.message, chatMessage.messageParameters)
|
||||
|
Loading…
Reference in New Issue
Block a user