Skip to content

Commit 5b792ec

Browse files
ruskotwoRaz Omessi
authored and
Raz Omessi
committed
Add missing return to privacy setting notification handling (tulir#579)
1 parent 32aa635 commit 5b792ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

privacysettings.go

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func (cli *Client) handlePrivacySettingsNotification(privacyNode *waBinary.Node)
158158
settings, err := cli.TryFetchPrivacySettings(false)
159159
if err != nil {
160160
cli.Log.Errorf("Failed to fetch privacy settings when handling change: %v", err)
161+
return
161162
}
162163
evt := cli.parsePrivacySettings(privacyNode, settings)
163164
// The data isn't be reliable if the fetch failed, so only cache if it didn't fail

0 commit comments

Comments
 (0)