2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

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

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();