Skip to content

Commit

Permalink
Don't try to fetch privacy settings in messenger mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 13, 2024
1 parent a85e168 commit 6b4acb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions privacysettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func (cli *Client) TryFetchPrivacySettings(ignoreCache bool) (*types.PrivacySett
// GetPrivacySettings will get the user's privacy settings. If an error occurs while fetching them, the error will be
// logged, but the method will just return an empty struct.
func (cli *Client) GetPrivacySettings() (settings types.PrivacySettings) {
if cli.MessengerConfig != nil {
return
}
settingsPtr, err := cli.TryFetchPrivacySettings(false)
if err != nil {
cli.Log.Errorf("Failed to fetch privacy settings: %v", err)
Expand Down

0 comments on commit 6b4acb9

Please sign in to comment.