fix: ringtone not stopping when rejecting a call

This commit is contained in:
Nicolas Werner 2022-06-16 12:08:37 +02:00
parent a6c09e41dc
commit 9b8f3dae81
1 changed files with 3 additions and 0 deletions

View File

@ -920,6 +920,9 @@ class CallSession {
/// event as of MSC2746. /// event as of MSC2746.
/// ///
void reject() { void reject() {
// stop play ringtone
voip.delegate.stopRingtone();
if (state != CallState.kRinging) { if (state != CallState.kRinging) {
Logs().e('[VOIP] Call must be in \'ringing\' state to reject!'); Logs().e('[VOIP] Call must be in \'ringing\' state to reject!');
return; return;