Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting Nheko custom events in my Matrix client #1625

Closed
avdb13 opened this issue Nov 24, 2023 · 4 comments
Closed

Supporting Nheko custom events in my Matrix client #1625

avdb13 opened this issue Nov 24, 2023 · 4 comments

Comments

@avdb13
Copy link

avdb13 commented Nov 24, 2023

Hi there, first of all thanks for your amazing work on this client! However, I noticed that a few things like annotations are formatted differently (see example below). I was wondering if these custom extensions were documented somewhere to make it easier to support Nheko since it would be painful to have to reverse-engineer everything.

{
    "im.nheko.relations.v1.relations": [
        {
            "event_id": "$4Qr_OGH7IlPvsLFsALzHHpP2KS68RAOPbYMDVurA6oc",
            "key": "mxc://tastytea.de/ORllHqkABcIHyorgoSIgpgbs",
            "rel_type": "m.annotation"
        }
    ],
    "m.relates_to": {
        "event_id": "$4Qr_OGH7IlPvsLFsALzHHpP2KS68RAOPbYMDVurA6oc",
        "key": "mxc://tastytea.de/ORllHqkABcIHyorgoSIgpgbs",
        "rel_type": "m.annotation"
    }
}
@avdb13
Copy link
Author

avdb13 commented Dec 11, 2023

For context, standard relationships are still supported by mtxclient, so it seems unnecessary to implement that extension.

Sorry you are right. I just opened this issue a while ago out of fear that Nheko displayed some events differently.

Remember me btw? Long time no see.

@deepbluev7
Copy link
Member

The custom relation format is documented here: matrix-org/matrix-spec-proposals#3051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@deepbluev7 @avdb13 and others