settings nil check

This commit is contained in:
Pascal Fischer 2023-11-29 15:16:11 +01:00
parent 2129b23fe7
commit ba96e102b4

View File

@ -406,7 +406,7 @@ func (am *DefaultAccountManager) AddPeer(setupKey, userID string, peer *nbpeer.P
Ephemeral: ephemeral, Ephemeral: ephemeral,
} }
if account.Settings.Extra.PeerApprovalEnabled { if account.Settings.Extra != nil && account.Settings.Extra.PeerApprovalEnabled {
newPeer.Status.RequiresApproval = true newPeer.Status.RequiresApproval = true
} }