-
Notifications
You must be signed in to change notification settings - Fork 4
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
Matrix bridge #46
Matrix bridge #46
Conversation
* fix name * fix localpart reservation and request * add appserviceUrl option (a web server where Matrix homeserver should send messages to) * remove encryption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, this all looks pretty good, and I really appreciate the fact that someone's actually taking a look at Matrix support. There're a few nitpicky things I've got but overall this is great!
@@ -31,23 +31,6 @@ export default class MatrixPlugin extends BoltPlugin { | |||
homeserverUrl: this.config.homeserverUrl, | |||
domain: this.config.domain, | |||
registration: this.config.reg_path, | |||
bridgeEncryption: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to remove all the encryption code? I'd prefer it if bolt-matrix supported encrypted rooms but if there's a reason I guess that's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it doesn't launch on my end with it, i might revisit it in the future, but almost all matrix-appservice-${platform} don't have encryption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah okay, i guess we could go back to that in the future then
Co-authored-by: William Horning <[email protected]>
Co-authored-by: William Horning <[email protected]>
This reverts commit 4f971cb. simply put, it doesn't work
d3dafe6
to
acda0cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this all looks pretty nice so far but could you make a new PR with the changes to bolt-revolt and bolt/lib? i want to avoid future merge conflicts if possible and that’d really help
remind me to cherrypick later |
Co-authored-by: William Horning <[email protected]>
fair warning: i will have to let |
that should be fine and isn't out of the ordinary, bolt-guilded does that to allow for file uploads (at least on the
cherry pick the stuff outside of bolt-matrix pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few other things i noticed when looking at this.
also, when you get the chance, could you please cherry pick your changes to bolt-revolt and bolt/lib?
.gitignore
Outdated
@@ -2,3 +2,4 @@ | |||
/config | |||
/config.ts | |||
/docker-compose.yml | |||
db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db | |
/db | |
packages/bolt-matrix/events.ts
Outdated
): Promise<BoltMessage<WeakEvent>> { | ||
const sender = await intent.getProfileInfo(event.sender); | ||
return { | ||
author: { | ||
username: sender.displayname || event.sender, | ||
rawname: event.sender, | ||
id: event.sender, | ||
profile: sender.avatar_url | ||
profile: `${sender.avatar_url.replace("mxc://", `${homeserverUrl}/_matrix/media/v3/thumbnail/`)}?width=96&height=96&method=scale` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
profile: `${sender.avatar_url.replace("mxc://", `${homeserverUrl}/_matrix/media/v3/thumbnail/`)}?width=96&height=96&method=scale` | |
profile: `${sender.avatar_url.replace("mxc://", `${homeserverUrl}/_matrix/media/v3/thumbnail/`)}?width=96&height=96&method=scale`, | |
color: '#0DBD8B' |
jsyk 0.5.5 was merged (see #44) so there're a few merge conflicts and public api changed but i can fix those for you if you'd like |
Signed-off-by: Jersey <[email protected]>
Merge branch 'main' into pr/austinhuang0131/46
thats not quite what i wanted to do, whoops |
i couldn't actually redo this in a sane way so i guess ill try to find a way to implement embeds and stuff or you could make a pr |
to matrixin principle embeds is just converting to some html that looks similar. for allowed tags see https://spec.matrix.org/v1.10/client-server-api/#mroommessage-msgtypes attachments would be more complicated since it requires uploading first, then attaching the mxc to the message. for custom emotes it'd also need to work the same way, but you'll need to use some db to store emoji-to-mxc mappings. from matrixhtml? good luck converting that images? use the download url on the homeserver |
I think when you merge by mistake you closed the tied issues :) I saw the email and was all happy! Only to come here and see it was a mistake :D :D cheers. |
gotta get it out of proof of concept