mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 22:15:41 +03:00
send stoppedTyping signaling message when sending chat message
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
add5e518e1
commit
fa4d02e2c6
1 changed files with 10 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue