mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Added support for platform-specific microphone permission in calls
This commit is contained in:
@@ -241,6 +241,10 @@ void Call::startIncoming() {
|
||||
}
|
||||
|
||||
void Call::answer() {
|
||||
_delegate->requestMicrophonePermissionOrFail([this](){ actuallyAnswer(); });
|
||||
}
|
||||
|
||||
void Call::actuallyAnswer() {
|
||||
Expects(_type == Type::Incoming);
|
||||
|
||||
if (_state != State::Starting && _state != State::WaitingIncoming) {
|
||||
|
Reference in New Issue
Block a user