fix(UiUtils): correctly lookup local account
Fixes a regression in f590fde7a4,
where links to local accounts would be opened in the browser.
This commit is contained in:
@@ -1458,7 +1458,7 @@ public class UiUtils {
|
||||
return;
|
||||
}
|
||||
Optional<Account> account = results.accounts.stream()
|
||||
.filter(a -> uri.getPath().contains(a.getFullyQualifiedName())).findAny();
|
||||
.filter(a -> uri.getPath().contains(a.username)).findAny();
|
||||
if (account.isPresent()) {
|
||||
args.putParcelable("profileAccount", Parcels.wrap(account.get()));
|
||||
go.accept(ProfileFragment.class, args);
|
||||
|
||||
Reference in New Issue
Block a user