Don't play call end sound for calls that never started

pull/21833/head
David Baker 2020-12-18 13:46:58 +00:00
parent 7bd2f2c6ba
commit 453575d70a
1 changed files with 2 additions and 1 deletions

View File

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