Skip to content

Commit

Permalink
Fix type of signaling config in NCConnectionController
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Aug 9, 2024
1 parent a8fc4d5 commit 3d5b274
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions NextcloudTalk/NCConnectionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#import "NCSettingsController.h"
#import "NCUserInterfaceController.h"

#import "NextcloudTalk-Swift.h"

NSString * const NCAppStateHasChangedNotification = @"NCAppStateHasChangedNotification";
NSString * const NCConnectionStateHasChangedNotification = @"NCConnectionStateHasChangedNotification";

Expand Down Expand Up @@ -85,9 +87,9 @@ - (void)checkConnectionState

- (void)checkAppState
{
TalkAccount *activeAccount = [[NCDatabaseManager sharedInstance] activeAccount];
NSDictionary *activeAccountSignalingConfig = [[[NCSettingsController sharedInstance] signalingConfigurations] objectForKey:activeAccount.accountId];
TalkAccount *activeAccount = [[NCDatabaseManager sharedInstance] activeAccount];
SignalingSettings *activeAccountSignalingConfig = [[[NCSettingsController sharedInstance] signalingConfigurations] objectForKey:activeAccount.accountId];

if (!activeAccount.server || !activeAccount.user) {
[self setAppState:kAppStateNotServerProvided];
[[NCUserInterfaceController sharedInstance] presentLoginViewController];
Expand Down

0 comments on commit 3d5b274

Please sign in to comment.