Skip to content

Commit

Permalink
feat: buttons; refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yurizhuk committed Jun 7, 2024
1 parent c3672e8 commit 2e95482
Show file tree
Hide file tree
Showing 15 changed files with 345 additions and 107 deletions.
2 changes: 1 addition & 1 deletion mobile-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ afterEvaluate {

groupId = "com.webitel"
artifactId = "mobile-sdk"
version = "0.8.1"
version = "0.9.3"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.webitel.mobile_sdk.data.chats
import com.webitel.mobile_sdk.domain.CallbackListener
import com.webitel.mobile_sdk.domain.Dialog
import com.webitel.mobile_sdk.domain.Error
import com.webitel.mobile_sdk.domain.HistoryRequest
import com.webitel.mobile_sdk.domain.Message
import com.webitel.mobile_sdk.domain.MessageCallbackListener
import webitel.portal.Connect
Expand Down Expand Up @@ -84,7 +83,6 @@ internal class CacheRequests(
fun onConnectionError(e: Error) {
sendMessageRequest = null
messageRequests.forEach {
it.message.setError(e)
it.callback.onError(e)
}
messageRequests.clear()
Expand Down Expand Up @@ -128,7 +126,6 @@ internal class CacheRequests(
internal class MessageRequestCache(
val callback: MessageCallbackListener,
val request: Connect.Request,
val message: WebitelMessage
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ internal interface ChatApiDelegate {
fileId: String,
observer: StreamObserver
)


fun sendPostback(
dialog: WebitelDialog,
mid: Long,
text: String,
code: String,
sendId: String? = null,
callback: MessageCallbackListener
)
}
Loading

0 comments on commit 2e95482

Please sign in to comment.