Merge branch 'nico/fix-ringtone-on-reject' into 'main'

fix: ringtone not stopping when rejecting a call

See merge request famedly/company/frontend/famedlysdk!1058
This commit is contained in:
Nicolas Werner 2022-06-16 14:15:00 +00:00
commit 507dfc8777
1 changed files with 3 additions and 0 deletions

View File

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