Fix accounts limit for non-x86 64-bit CPUs

This commit is contained in:
Eric Kotato 2021-01-20 16:28:06 +03:00
parent d2cbf5cf4f
commit 8f3941a4c2

View file

@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "base/timer.h"
#include "base/build_config.h"
namespace Storage {
class Domain;
@ -31,7 +32,7 @@ public:
};
static constexpr auto kMaxAccountsWarn = 3;
#ifdef Q_PROCESSOR_X86_64
#ifdef ARCH_CPU_64_BITS
static constexpr auto kMaxAccounts = 100;
#else
static constexpr auto kMaxAccounts = 10;