2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add start/end/reconnecting sounds to voice chats.

This commit is contained in:
John Preston
2020-12-18 12:44:19 +04:00
parent d301601360
commit c5ad7c7c89
11 changed files with 109 additions and 46 deletions

View File

@@ -951,20 +951,20 @@ void Call::setState(State state) {
_startTime = crl::now();
break;
case State::ExchangingKeys:
_delegate->playSound(Delegate::Sound::Connecting);
_delegate->callPlaySound(Delegate::CallSound::Connecting);
break;
case State::Ended:
_delegate->playSound(Delegate::Sound::Ended);
_delegate->callPlaySound(Delegate::CallSound::Ended);
[[fallthrough]];
case State::EndedByOtherDevice:
_delegate->callFinished(this);
break;
case State::Failed:
_delegate->playSound(Delegate::Sound::Ended);
_delegate->callPlaySound(Delegate::CallSound::Ended);
_delegate->callFailed(this);
break;
case State::Busy:
_delegate->playSound(Delegate::Sound::Busy);
_delegate->callPlaySound(Delegate::CallSound::Busy);
break;
}
}