it's working now, sending back to opensim group chat. i need to clean up some debug messages that show keys and stuff in logs and i'll put it up on git soon.
Matrix/element client side
https://gyazo.com/714e862c670dd0fcdeff5566477838bd
OpenSim side
https://gyazo.com/06bc4c832ab162c3f381e25d87450d29
i'm not decided on images from matrix.. obviously images cannot appear on the opensim chat site. we could do a url but matrix uses an internal format for images so we would have to grab the mxn:// uri and convert it and store it on the web somewhere. there's a 'blur' image for NSFW images but it gets kind of messy i think. what do you think about images in the matrix room? at the moment the opensim users wouldn't even know an image was uploaded to the chat room on the matrix side.
PUT /_matrix/app/v1/transactions/166
Accept: application/json
Host: 127.0.0.1:9009
User-Agent: Synapse/1.147.0
Accept-Encoding: gzip
Authorization: Bearer 95...X
Content-Type: application/json
Content-Length: 722
MAPPUT Received PUT 166
Transaction 166
{"events":[{"age":184,"content":{"body":"bootysnatchers.png","info":{"h":412,"mimetype":"image/png","org.matrix.msc4230.is_animated":false,"size":592693,"thumbnail_info":{"h":412,"mimetype":"image/png","size":461385,"w":555},"thumbnail_url":"mxc://matrix.holoneon.com/wAKyzDTDCGVhZOWscWatnuPD","w":555,"xyz.amorgan.blurhash":"LgKw|R?wo}H?~W%MInn%%fsmxboz"},"m.mentions":{},"msgtype":"m.image","url":"mxc://matrix.holoneon.com/GSHVCVwinPdIFvVpZkodBdIc"},"event_id":"$365d2-yuyOl_W6YKfJuEKzxqAc4yT0pvOg-1HCOygrQ","origin_server_ts":1771032678082,"room_id":"!savizffPPkRcDUOVeM:matrix.holoneon.com","sender":"@fiona:matrix.holoneon.com","type":"m.room.message","unsigned":{"age":184},"user_id":"@fiona:matrix.holoneon.com"}]}