Skip to content

Commit

Permalink
Do not override the subscription value if one of the account has ente…
Browse files Browse the repository at this point in the history
…rprise.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Oct 17, 2024
1 parent d463711 commit 3e4c1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ void Account::updateServerSubcription()
{
ConfigFile currentConfig;
if (const auto serverHasValidSubscription = _capabilities.serverHasValidSubscription();
serverHasValidSubscription != currentConfig.serverHasValidSubscription()) {
serverHasValidSubscription != currentConfig.serverHasValidSubscription() && !serverHasValidSubscription) {
currentConfig.setServerHasValidSubscription(serverHasValidSubscription);
}
}
Expand Down

0 comments on commit 3e4c1c5

Please sign in to comment.