2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Use cloud-based settings for p2p in calls.

This commit is contained in:
John Preston
2018-10-24 13:07:54 +04:00
parent 5174c002cf
commit 8d27d8efcf
10 changed files with 80 additions and 87 deletions

View File

@@ -793,18 +793,6 @@ void Instance::Private::configLoadDone(const MTPConfig &result) {
+ (data.vexpires.v - unixtime()) * TimeMs(1000);
requestConfigIfExpired();
if (AuthSession::Exists()) {
using PeerToPeer = Calls::PeerToPeer;
const auto current = Auth().settings().callsPeerToPeer();
if (current == PeerToPeer::DefaultContacts
|| current == PeerToPeer::DefaultEveryone) {
Auth().settings().setCallsPeerToPeer(
(data.is_default_p2p_contacts()
? PeerToPeer::DefaultContacts
: PeerToPeer::DefaultEveryone));
}
}
emit _instance->configLoaded();
}