Skip to content

Commit fef28d9

Browse files
authored
fix: Pause playing audio before sending voice messages (#456)
1 parent db959de commit fef28d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/smart-components/Channel/components/MessageInput/VoiceMessageInputWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export const VoiceMessageInputWrapper = ({
106106
setVoiceInputState(VoiceMessageInputStatus.READY_TO_RECORD);
107107
} else {
108108
stop();
109+
pause();
109110
setSubmit(true);
110111
}
111112
}}

0 commit comments

Comments
 (0)