mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Allow disabling calls on tdesktop device.
This commit is contained in:
@@ -377,6 +377,8 @@ void Instance::handleCallUpdate(
|
||||
} else if (phoneCall.vdate().v + (config.callRingTimeoutMs / 1000)
|
||||
< base::unixtime::now()) {
|
||||
LOG(("Ignoring too old call."));
|
||||
} else if (Core::App().settings().disableCalls()) {
|
||||
LOG(("Ignoring call because of 'accept calls' settings."));
|
||||
} else {
|
||||
createCall(user, Call::Type::Incoming, phoneCall.is_video());
|
||||
_currentCall->handleUpdate(call);
|
||||
|
Reference in New Issue
Block a user