matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
188 stars 94 forks source link

Allmightlegend/1707 #1939

Closed AllMightLegend closed 1 month ago

AllMightLegend commented 1 month ago
  1. Typing notifications (which contain a single room_id)
  2. Read receipts (which can contain multiple room_ids)
  3. Presence updates (which do not contain room_ids)

Typing Notification EDU Example:

{
  "edu_type": "m.typing",
  "content": {
    "room_id": "!roomid:example.com",
    "user_id": "@user:example.com"
  }
}

Read Receipt EDU Example:


{
  "edu_type": "m.receipt",
  "content": {
    "!roomid1:example.com": {
      "$eventid:example.com": {
        "@user:example.com": {
          "ts": 1436451550453
        }
      }
    },
    "!roomid2:example.com": {
      "$eventid:example.com": {
        "@user:example.com": {
          "ts": 1436451550453
        }
      }
    }
  }
}

Presence Update EDU Example (without room_id):

{
  "edu_type": "m.presence",
  "content": {
    "user_id": "@user:example.com",
    "presence": "online",
    "last_active_ago": 2478593,
    "currently_active": true
  }
}

Signed-off-by : Srinjoy Sen Chowdhury srinjoysen123@gmail.com

Pull Request Checklist

KitsuneRal commented 1 month ago

Either you haven't read CONTRIBUTING.rst or you didn't understand it. Sorry, we can't help you with learning the basics of contributing. Closing this, as I already told you to read the documentation before.

KitsuneRal commented 1 month ago

Also, answering on your asks in the previous PR:

  1. If you want to learn how to contribute here correctly, take a look at "other change" PRs that have already been merged, what they consist of and look like. I see you're moving in the right direction but neither of us has the time to individually coach you.
  2. You can ask the community to help you with contributions - the README file mentions the Matrix room that you are welcome to join.