mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
Merge pull request #3613 from nextcloud/bugfix/3560/notSendSpeakingMessageWhenMuted
avoid to send "speaking" data channel message when mic is muted
This commit is contained in:
commit
c016804314
@ -1117,7 +1117,7 @@ class CallActivity : CallBaseActivity() {
|
||||
micInputAudioRecorder.read(byteArr, 0, byteArr.size)
|
||||
val isCurrentlySpeaking = abs(byteArr[0].toDouble()) > MICROPHONE_VALUE_THRESHOLD
|
||||
|
||||
if (isCurrentlySpeaking && !isSpeakingLongTerm) {
|
||||
if (microphoneOn && isCurrentlySpeaking && !isSpeakingLongTerm) {
|
||||
isSpeakingLongTerm = true
|
||||
sendIsSpeakingMessage(true)
|
||||
} else if (!isCurrentlySpeaking && isSpeakingLongTerm) {
|
||||
|
Loading…
Reference in New Issue
Block a user