Merge pull request #5572 from matrix-org/dbkr/dont_play_hangup_sound_when_answered_elsewhere

Don't play the hangup sound when the call is answered from elsewhere
pull/21833/head
David Baker 2021-01-25 16:39:44 +00:00 committed by GitHub
commit 303694754b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ export default class CallHandler {
title: _t("Answered Elsewhere"),
description: _t("The call was answered on another device."),
});
} else if (oldState !== CallState.Fledgling) {
} else if (oldState !== CallState.Fledgling && oldState !== CallState.Ringing) {
// don't play the end-call sound for calls that never got off the ground
this.play(AudioID.CallEnd);
}