You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Merge pull request #5506 from matrix-org/dbkr/silent_call_end_for_non_started_calls
Don't play call end sound for calls that never started
This commit is contained in:
@@ -341,7 +341,8 @@ export default class CallHandler {
|
|||||||
title: _t("Answered Elsewhere"),
|
title: _t("Answered Elsewhere"),
|
||||||
description: _t("The call was answered on another device."),
|
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);
|
this.play(AudioID.CallEnd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user