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;
|
return;
|
||||||
}
|
}
|
||||||
Optional<Account> account = results.accounts.stream()
|
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()) {
|
if (account.isPresent()) {
|
||||||
args.putParcelable("profileAccount", Parcels.wrap(account.get()));
|
args.putParcelable("profileAccount", Parcels.wrap(account.get()));
|
||||||
go.accept(ProfileFragment.class, args);
|
go.accept(ProfileFragment.class, args);
|
||||||
|
|||||||
Reference in New Issue
Block a user