AgoraIO/agora-react-native-rtm

setLocalUserAttributes fires ATTRIBUTE_OPERATION_ERR_FAILURE

Closed this issue · 1 comments

Hi,

i try to set a user attributes array once i logged in successfully into rtm client but it returns ATTRIBUTE_OPERATION_ERR_FAILURE and i cannot understand why!

This is the code

       client.setLocalUserAttributes([
            {
                key: 'id',
                value: `${this.props.user.id}`
            },
            {
                key: 'name',
                value: this.props.user.name
            },
            {
                key: 'surname',
                value: this.props.user.surname
            },
        ]);

Any help?

Thanks

fixed in 1.2.2-alpha.2