Skip to content

'age' field should be in unsigned #1294

Closed
@anoadragon453

Description

@anoadragon453

The age field of events sent to application services is a constantly changing parameter, and thus should be listed under the unsigned field.

https://matrix.org/docs/spec/application_service/unstable.html#put-transactions-txnid

{
      "age": 32,
      "content": {
        "body": "incoming message",
        "msgtype": "m.text"
      },
      "event_id": "$14328055551tzaee:localhost",
      "origin_server_ts": 1432804485886,
      "room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
      "type": "m.room.message",
      "user_id": "@bob:localhost"
    },

should be:

{
      "content": {
        "body": "incoming message",
        "msgtype": "m.text"
      },
      "event_id": "$14328055551tzaee:localhost",
      "origin_server_ts": 1432804485886,
      "room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
      "type": "m.room.message",
      "unsigned": {
        "age": 32,
      },
      "user_id": "@bob:localhost"
    },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions