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:
@@ -130,7 +130,7 @@ MTPVector<MTPMessageEntity> EntitiesToMTP(
|
|||||||
return MTP_inputUserEmpty();
|
return MTP_inputUserEmpty();
|
||||||
}
|
}
|
||||||
bool success;
|
bool success;
|
||||||
UserId uid = qstr_uid.toInt(&success);
|
UserId uid = qstr_uid.toLongLong(&success);
|
||||||
if (success && session) {
|
if (success && session) {
|
||||||
if (uid == session->userId()) {
|
if (uid == session->userId()) {
|
||||||
return MTP_inputUserSelf();
|
return MTP_inputUserSelf();
|
||||||
|
Reference in New Issue
Block a user