Forji/Forji
pdurlej 0b815335a9 fix: key multi-instance fallback by account (#29)
## Summary

This changes the multi-instance fallback map to key bootstrapped connections by account instead of server URL only.

Previously, `connect(instances:)` built a dictionary keyed only by `instance.serverURL`. If two accounts used the same Forgejo instance, `Dictionary(uniqueKeysWithValues:)` could trap on duplicate keys, and fallback lookup could also reuse the wrong account for a failed restore.

## Changes

- Add an account key based on normalized server URL + username.
- Use that key for bootstrapped connection fallback in `MultiInstanceManager`.
- Add a regression test covering two token-auth accounts on the same server URL.

## Verification

- `git diff --check` passes.
- I could not run `xcodebuild` locally because the available Xcode install has not accepted the license on this machine (`xcodebuild` exits before build/test execution).

Co-authored-by: Piotr Durlej <pdurlej@users.noreply.github.com>
Reviewed-on: https://codeberg.org/secana/Forji/pulls/29
Reviewed-by: secana <secana@noreply.codeberg.org>
2026-05-10 10:39:02 +02:00
..
Forji fix: key multi-instance fallback by account (#29) 2026-05-10 10:39:02 +02:00
Forji.xcodeproj chore: update Forji version 2026-05-07 19:28:42 +02:00
ForjiTests fix: key multi-instance fallback by account (#29) 2026-05-10 10:39:02 +02:00
ForjiUITests refactor: small name changes 2026-05-07 19:17:49 +02:00
Info.plist feat: implement iOS notifications #6 2026-03-22 17:43:21 +01:00
PrivacyInfo.xcprivacy feat: prepare publishing 2026-02-28 21:49:55 +01:00