fix: infinite loading screens when when fetching remote followers on some accounts

This commit is contained in:
LucasGGamerM
2023-04-19 16:58:55 -03:00
parent 29777c2513
commit 2c7df11e84

View File

@@ -1151,9 +1151,9 @@ public class UiUtils {
domain = matcher.group(1);
}
if(domain == null){
return;
}
// if(domain == null){
// return;
// }
Pattern patternForQuery = Pattern.compile("https?:\\/\\/[^\\/]+\\/@(\\w+)");
Matcher matcherForQuery = patternForQuery.matcher(query.getQuery());
@@ -1163,8 +1163,13 @@ public class UiUtils {
trimmedQuery = matcherForQuery.group(1);
}
if(trimmedQuery == null){
return;
// if(trimmedQuery == null){
// return;
// }
if(query instanceof Account){
domain = ((Account) query).getDomain();
trimmedQuery = ((Account) query).username;
}
String finalDomain = domain;