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

Beta version 1.4.4: Add some checks.

This commit is contained in:
John Preston
2018-10-17 09:09:59 +03:00
parent 44eac2bf07
commit a429e22b93
7 changed files with 36 additions and 27 deletions

View File

@@ -241,9 +241,11 @@ void Call::startIncoming() {
}
void Call::answer() {
_delegate->requestMicrophonePermissionOrFail([this](){ actuallyAnswer(); });
_delegate->requestMicrophonePermissionOrFail(crl::guard(this, [=] {
actuallyAnswer();
}));
}
void Call::actuallyAnswer() {
Expects(_type == Type::Incoming);