Skip to content

[BUG] handle account switching when accounts have the same id #1413

@angristan

Description

@angristan

Is there an existing issue for this?

  • I have searched the issues (both open and closed)

Current Behavior

This is basically like elk-zone/elk#1510.

Image

In the following example, I have 3 accounts:

Handle Local ID
[email protected] 1
[email protected] 1
[email protected] 5363

-> The ID can't be used to identify an account by itself, we need the instance as well.

I think this could be fixed here:

let isActive = activeAuthentication.userID == authentication.userID

By switching to:

let isActive = activeAuthentication.userID == authentication.userID && activeAuthentication.domain == authentication.domain

or something like that. I wasn't able to setup Xcode to be able to run the app locally, so I can't test 😬

Expected Behavior

The account switcher should show ✔ only for the current account

Steps To Reproduce

Connect with accounts on different instances that have the same local ID

Environment

- Device: iPhone 14 Pro
- OS: iOS 18
- Version: v2024.12
- Build:6891

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions