mirror of
https://github.com/MGislv/NekoX.git
synced 2024-06-30 10:14:04 +00:00
Fix long userId?
This commit is contained in:
parent
f406f07718
commit
34d78450c7
|
@ -1805,8 +1805,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
|||
}
|
||||
} else if (path.startsWith("@id")) {
|
||||
try {
|
||||
|
||||
int userId = Utilities.parseInt(StringsKt.substringAfter(path, "@id", "0"));
|
||||
long userId = Utilities.parseLong(StringsKt.substringAfter(path, "@id", "0"));
|
||||
if (userId != 0) {
|
||||
push_user_id = userId;
|
||||
}
|
||||
|
@ -2093,7 +2092,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
|||
try {
|
||||
url = url.replace("tg:user", "tg://telegram.org").replace("tg://user", "tg://telegram.org");
|
||||
data = Uri.parse(url);
|
||||
int userId = Utilities.parseInt(data.getQueryParameter("id"));
|
||||
long userId = Utilities.parseLong(data.getQueryParameter("id"));
|
||||
if (userId != 0) {
|
||||
push_user_id = userId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user