Page MenuHomePhorge

Support emote rooms in MSC2545
ClosedPublic

Authored by tusooa on Aug 11 2024, 10:09 PM.

Details

Summary

This supports displaying stickers stored as room states, as specified in MSC2545.

Type: add

CCBUG: https://iron.lily-is.land/T136

Test Plan

Create a room. Record its room id.

Send an account data event with type "im.ponies.emote_rooms" and the following content, replacing <room id> with the room id of the room just created:

{
  "rooms": {
    "<room id>": {
      "": {}
    }
  }
}

Send a state event in the room, with type "im.ponies.room_emotes" and the following content, replacing <room id> with the room id of the room just created:

{
  "images": {
    "nacho趴": {
      "body": "🐱",
      "info": {
        "h": 188,
        "mimetype": "image/png",
        "size": 139529,
        "thumbnail_info": {
          "h": 188,
          "mimetype": "image/png",
          "size": 139529,
          "w": 256
        },
        "thumbnail_url": "mxc://nya.one/5e911bb4f069befa1f92d5d7c2852fd94317428a",
        "w": 256
      },
      "url": "mxc://nya.one/5e911bb4f069befa1f92d5d7c2852fd94317428a"
    }
  },
  "pack": {
    "display_name": "Test pack"
  }
}

Open kazv and open the sticker picker. Verify that you have two tabs, the second titled "Test pack".

Click on "Test pack". Verify that you can see one sticker.

Click on the sticker. Verify that it is sent.

Diff Detail

Repository
rK kazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 266
Build 520: GitLab CI for kazv
Build 519: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 11 2024, 10:10 PM
Harbormaster failed remote builds in B264: Diff 437!
Harbormaster returned this revision to the author for changes because remote builds failed.Aug 12 2024, 5:03 PM
Harbormaster failed remote builds in B266: Diff 439!
Harbormaster returned this revision to the author for changes because remote builds failed.Aug 12 2024, 5:27 PM
Harbormaster failed remote builds in B268: Diff 441!
This revision is now accepted and ready to land.Aug 14 2024, 12:51 AM
This revision was landed with ongoing or failed builds.Aug 14 2024, 6:00 PM
This revision was automatically updated to reflect the committed changes.