Don't play the hangup sound when the call is answered from elsewhere

This commit is contained in:
David Baker 2021-01-25 16:18:14 +00:00
parent bb50cd56ee
commit 8783765ce3

View file

@ -375,7 +375,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);
}