Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Timestamp of pulled emotes is incorrect #120

@IronFlare

Description

@IronFlare

When subscribing to an EventStream for the emote_set.update event, I am able to receive events as intended for emotes that are pushed, updated, and pulled. However, specifically on pulled emotes, the value of old_value.timestamp is wildly incorrect. Examples are shown below.

Given that there's no documentation describing special behavior for pulled emote timestamps, I assume this is in error. Do you have any idea why this might be occurring, or a temporary workaround to obtain the proper timestamp?

Edit to add: I also would have expected there to be a timestamp value for the pulled update itself as well, but the endpoint doesn't appear to provide one. I think this is a separate—albeit related—issue, though.

Sample pushed array:

"pushed": [
  {
    "key": "emotes",
    "index": 424,
    "type": "object",
    "value": {
      "actor_id": "omitted",
      "data": {
        "animated": true,
        "flags": 0,
        "host": {
          "files": [
            // Omitted for concision
          ],
          "url": "//cdn.7tv.app/emote/61c4ed2345ea0fdc58f68e8f"
        },
        "id": "61c4ed2345ea0fdc58f68e8f",
        "lifecycle": 3,
        "listed": true,
        "name": "programming",
        "owner": {
          // Omitted for concision
        },
        "state": ["LISTED"],
        "tags": [
          // Omitted for concision
        ]
      },
      "flags": 0,
      "id": "61c4ed2345ea0fdc58f68e8f",
      "name": "programming",
      "timestamp": 1693865677849 // <---- Correct value
    }
  }
]

Sample pulled array, for an update executed moments later:

"pulled": [
  {
    "key": "emotes",
    "index": 424,
    "type": "object",
    "old_value": {
      "actor_id": "omitted",
      "flags": 0,
      "id": "61c4ed2345ea0fdc58f68e8f",
      "name": "programming",
      "timestamp": -62135596800000 // <---- Incorrect value
    },
    "value": null
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions