Reputation: 3865
I'm seeing the history list endpoint return incorrect data. When I add a label, the history API endpoint returns "labelsRemoved" and in fact returns the incorrect label id. Strangely, the information under payload['labelsRemoved']['message']['labelIds'] are correct.
Should we ignore the "labelsAdded" and "labelsRemoved" fields and just use the "messages" field instead?
Upvotes: 0
Views: 165
Reputation: 2998
Users.history: list have various properties per resource. labelsAdded
and labelsRemoved
are just lists if labels that were added/removed from the message. The main property messages
will still contain the messages of the history record.
List of messages changed in this history record. The fields for specific change types, such as messagesAdded may duplicate messages in this field. We recommend using the specific change-type fields instead of this.
Upvotes: 1