Skip to content

User missing attribute "unsubscribed_from_emails" #14

Description

@sdorazio

The user object is missing an attribute "unsubscribed_from_emails", which is part of the standard intercom api. Because of this, setting this attribute on the user, followed by calling user.save() does not update the flag on Intercom.

The following code should work:

user = User.find(email='[email protected]')
user['unsubscribed_from_emails'] = True
user.save()

However, since the unsubscribed_from_emails is not in the attribute list, it does not get sent as a part of the data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions