Fix tg://user?id links for 64-bit user ids (#296)
This commit is contained in:
parent
1ac48ddfa9
commit
c94e7b4cbc
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue