fix: infinite loading screens when when fetching remote followers on some accounts
This commit is contained in:
@@ -1151,9 +1151,9 @@ public class UiUtils {
|
|||||||
domain = matcher.group(1);
|
domain = matcher.group(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(domain == null){
|
// if(domain == null){
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
Pattern patternForQuery = Pattern.compile("https?:\\/\\/[^\\/]+\\/@(\\w+)");
|
Pattern patternForQuery = Pattern.compile("https?:\\/\\/[^\\/]+\\/@(\\w+)");
|
||||||
Matcher matcherForQuery = patternForQuery.matcher(query.getQuery());
|
Matcher matcherForQuery = patternForQuery.matcher(query.getQuery());
|
||||||
@@ -1163,8 +1163,13 @@ public class UiUtils {
|
|||||||
trimmedQuery = matcherForQuery.group(1);
|
trimmedQuery = matcherForQuery.group(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(trimmedQuery == null){
|
// if(trimmedQuery == null){
|
||||||
return;
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
if(query instanceof Account){
|
||||||
|
domain = ((Account) query).getDomain();
|
||||||
|
trimmedQuery = ((Account) query).username;
|
||||||
}
|
}
|
||||||
|
|
||||||
String finalDomain = domain;
|
String finalDomain = domain;
|
||||||
|
|||||||
Reference in New Issue
Block a user