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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user