fix: ringtone not stopping when rejecting a call
This commit is contained in:
parent
a6c09e41dc
commit
9b8f3dae81
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue