Fix tg://user?id links for 64-bit user ids (#296)

This commit is contained in:
blank X 2022-01-22 00:58:53 +00:00 committed by GitHub
parent 1ac48ddfa9
commit c94e7b4cbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ MTPVector<MTPMessageEntity> EntitiesToMTP(
return MTP_inputUserEmpty();
}
bool success;
UserId uid = qstr_uid.toInt(&success);
UserId uid = qstr_uid.toLongLong(&success);
if (success && session) {
if (uid == session->userId()) {
return MTP_inputUserSelf();