2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Skip call ended sound if ended from other device.

This commit is contained in:
John Preston
2017-05-12 19:09:34 +03:00
parent 9dfd7f4ba9
commit 843f983051
3 changed files with 11 additions and 2 deletions

View File

@@ -710,6 +710,7 @@ void Panel::stateChanged(State state) {
if (_call) {
if ((state != State::HangingUp)
&& (state != State::Ended)
&& (state != State::EndedByOtherDevice)
&& (state != State::FailedHangingUp)
&& (state != State::Failed)) {
auto toggleButton = [this](auto &&button, bool visible) {
@@ -785,7 +786,8 @@ void Panel::updateStatusText(State state) {
case State::FailedHangingUp:
case State::Failed: return lang(lng_call_status_failed);
case State::HangingUp: return lang(lng_call_status_hanging);
case State::Ended: return lang(lng_call_status_ended);
case State::Ended:
case State::EndedByOtherDevice: return lang(lng_call_status_ended);
case State::ExchangingKeys: return lang(lng_call_status_exchanging);
case State::Waiting: return lang(lng_call_status_waiting);
case State::Requesting: return lang(lng_call_status_requesting);