mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't allow two same accounts being logged in.
This commit is contained in:
@@ -166,11 +166,9 @@ base::Observable<void> &Session::downloaderTaskFinished() {
|
||||
}
|
||||
|
||||
uint64 Session::uniqueId() const {
|
||||
auto result = uint64(uint32(userId()));
|
||||
if (mtp().isTestMode()) {
|
||||
result |= 0x0100'0000'0000'0000ULL;
|
||||
}
|
||||
return result;
|
||||
// See also Account::willHaveSessionUniqueId.
|
||||
return uint64(uint32(userId()))
|
||||
| (mtp().isTestMode() ? 0x0100'0000'0000'0000ULL : 0ULL);
|
||||
}
|
||||
|
||||
UserId Session::userId() const {
|
||||
|
Reference in New Issue
Block a user