send stoppedTyping signaling message when sending chat message

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-05-22 15:01:32 +02:00
parent add5e518e1
commit fa4d02e2c6
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -749,7 +749,6 @@ class ChatActivity :
override fun onFinish() {
sendStopTypingMessage()
typingTimer = null
}
}.start()
} else {
@ -760,11 +759,15 @@ class ChatActivity :
}
fun sendStopTypingMessage() {
for ((sessionId, participant) in webSocketInstance?.getUserMap()!!) {
val ncSignalingMessage = NCSignalingMessage()
ncSignalingMessage.to = sessionId
ncSignalingMessage.type = "stoppedTyping"
signalingMessageSender!!.send(ncSignalingMessage)
if (!CapabilitiesUtilNew.isTypingStatusPrivate(conversationUser!!)) {
typingTimer = null
for ((sessionId, participant) in webSocketInstance?.getUserMap()!!) {
val ncSignalingMessage = NCSignalingMessage()
ncSignalingMessage.to = sessionId
ncSignalingMessage.type = "stoppedTyping"
signalingMessageSender!!.send(ncSignalingMessage)
}
}
}
@ -2369,6 +2372,7 @@ class ChatActivity :
}
binding?.messageInputView?.inputEditText?.setText("")
sendStopTypingMessage()
val replyMessageId: Int? = findViewById<RelativeLayout>(R.id.quotedChatMessageView)?.tag as Int?
sendMessage(
editable,