Skip to content

fix: Check account change#2518

Merged
Ivansss merged 1 commit into
mainfrom
fix/noid/account-change-check
May 15, 2026
Merged

fix: Check account change#2518
Ivansss merged 1 commit into
mainfrom
fix/noid/account-change-check

Conversation

@SystemKeeper
Copy link
Copy Markdown
Collaborator

Compare to

- (void)checkForAccountChange:(NSString *)accountId
{
// Change account if notification is from another account
if (accountId && ![[[NCDatabaseManager sharedInstance] activeAccount].accountId isEqualToString:accountId]) {
// Leave chat before changing accounts
if ([[NCRoomsManager sharedInstance] chatViewController]) {
[[[NCRoomsManager sharedInstance] chatViewController] leaveChat];
}
// Set notification account active
[[NCSettingsController sharedInstance] setActiveAccountWithAccountId:accountId];
}
}

We now left the chat for every push notification, which is not intended to do.

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
@SystemKeeper SystemKeeper requested a review from Ivansss May 12, 2026 21:00
@Ivansss Ivansss merged commit f393344 into main May 15, 2026
10 checks passed
@Ivansss Ivansss deleted the fix/noid/account-change-check branch May 15, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants