Merge branch 'td/stopRingtone' into 'main'

fix: try to stop ringtone on call termination

Closes famedly/company/product-management#531

See merge request famedly/company/frontend/famedlysdk!1220
This commit is contained in:
Krille 2023-01-27 12:58:09 +00:00
commit f9c0fdca69
1 changed files with 7 additions and 0 deletions

View File

@ -1067,6 +1067,13 @@ class CallSession {
ringingTimer?.cancel();
ringingTimer = null;
try {
voip.delegate.stopRingtone();
} catch (e) {
// maybe rigntone never started (group calls) or has been stopped already
Logs().d('stopping ringtone failed ', e);
}
hangupParty = party;
hangupReason = reason;