From 082b817f41ceb1ac5bb855c00f5772ddf40c40b0 Mon Sep 17 00:00:00 2001 From: kkostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Fri, 21 May 2021 12:07:43 -0400 Subject: [PATCH] account details: fix jams account detecting Change-Id: I615c73aba775fc74dccd94e53671a75585e37df5 --- Ring/Ring/Models/AccountModel.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ring/Ring/Models/AccountModel.swift b/Ring/Ring/Models/AccountModel.swift index d6161172c..c581cddb0 100644 --- a/Ring/Ring/Models/AccountModel.swift +++ b/Ring/Ring/Models/AccountModel.swift @@ -52,6 +52,9 @@ class AccountModel: Equatable { self.enabled = newDetails .get(withConfigKeyModel: ConfigKeyModel.init(withKey: .accountEnable)) .boolValue + let managerConfModel = ConfigKeyModel(withKey: .managerUri) + let isJams = !newDetails.get(withConfigKeyModel: managerConfModel).isEmpty + self.isJams = isJams } } } @@ -97,9 +100,6 @@ class AccountModel: Equatable { ConfigKeyModel(withKey: .accountRegistrationStatus))) { self.status = status } - - let managerConfModel = ConfigKeyModel(withKey: .managerUri) - self.isJams = !newDetails.get(withConfigKeyModel: managerConfModel).isEmpty } } } -- GitLab