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

Added Connecting state to Calls::TopBar.

This commit is contained in:
23rd
2020-12-18 21:02:19 +03:00
parent 7a07acb124
commit b85bbadd74
5 changed files with 81 additions and 38 deletions

View File

@@ -766,6 +766,15 @@ void GroupCall::sendMutedUpdate() {
}).send();
}
rpl::producer<bool> GroupCall::connectingValue() const {
using namespace rpl::mappers;
return _state.value() | rpl::map(
_1 == State::Creating
|| _1 == State::Joining
|| _1 == State::Connecting
) | rpl::distinct_until_changed();
}
void GroupCall::setCurrentAudioDevice(bool input, const QString &deviceId) {
if (input) {
_mediaDevices->switchToAudioInput(deviceId);