weechat-matrix-rs icon indicating copy to clipboard operation
weechat-matrix-rs copied to clipboard

wip: rebase verification

Open panekj opened this issue 1 year ago • 15 comments

Requires clean-up but seems to work so far image image

qrcode wasn't available as an option, will need to figure out how to test that

panekj avatar Oct 16 '24 14:10 panekj

builds for me \o/

411022336 Feb 24 20:17 target/debug/libmatrix.so

now to figure out how to test it for real :)

I joined the #weechat-matrix:termina.org.uk matrix room for further support

strk avatar Feb 24 '25 19:02 strk

Upon trying to load the built plugin I got:

11:47:40 =!= | API mismatch for plugin "/home/strk/.local/share/weechat/plugins/matrix.so" (current API: "20241124-01", plugin API: "20240727-01"), failed to load

mismatch between weechat being run and weechat being built against ?

strk avatar Feb 26 '25 10:02 strk

I was able to verify my weechat session from fluffychat/android using the code in this branch, good work !

@poljar did you abandon #56 or what's the plan here ? Is it useful for me to test that one ?

strk avatar Mar 17 '25 16:03 strk

I often get this error (and a core dump)

weechat =!= | Panic in the main Weechat thread: panicked at src/verification_buffer.rs:249:14:

strk avatar Mar 17 '25 17:03 strk

@strk Were you able to get it running? If so, would you mind sharing the installation steps?

sand4rt avatar Mar 17 '25 18:03 sand4rt

@strk Were you able to get it running? If so, would you mind sharing the installation steps?

Installation was very easy: make install (after merging the "main" branch)

strk avatar Mar 17 '25 19:03 strk

@strk Were you able to get it running? If so, would you mind sharing the installation steps?

Installation was very easy: make install (after merging the "main" branch)

Did that as well and the plugin was loaded in weechat, but i didn't know how to verify/connect to a server.

I could help out with testing if needed?

sand4rt avatar Mar 17 '25 20:03 sand4rt

i didn't know how to verify/connect to a server.

/matrix help

strk avatar Mar 17 '25 20:03 strk

i didn't know how to verify/connect to a server.

/matrix help

Thanks for the reply! I forgot to mention that i encountered the following error. Not sure if this is related to this PR? Otherwise, i'll go ahead and create a new issue..

00:22:10 asahifedora  -- │ matrix: Connected to test-server
00:22:11 asahifedora =!= │ matrix: Ruma error Failed to log in: Http(Api(Deserialization(Json(Error("expected value", line: 1, column: 1)))))

matrix-rust.conf:

asahifedora.username = "my-username"
asahifedora.password = "my-password"
asahifedora.autoconnect = on
asahifedora.homeserver = "https://matrix.to/#asahi-devel:fedoraproject.org"
asahifedora.ssl_verify = on

I appear to be connected, but I don’t see any chats. I also got the error: Ruma error: Failed to log in.

sand4rt avatar Mar 17 '25 23:03 sand4rt

this is wrong, that's a link to channel, not homeserver

asahifedora.homeserver = "https://matrix.to/#asahi-devel:fedoraproject.org"

panekj avatar Mar 17 '25 23:03 panekj

this is wrong, that's a link to channel, not homeserver

asahifedora.homeserver = "https://matrix.to/#asahi-devel:fedoraproject.org"

Thanks for the pointer! i'm just trying out matrix so didn't know that. i can login now and see chats with:

asahifedora.homeserver = "https://matrix.org"

sand4rt avatar Mar 17 '25 23:03 sand4rt

It this related to me being able to see my own messages in all other clients from weechat but not being able to see messages from all other clients IN weechat? For instance if I am in schildichat nothing I send is showing in weechat but it works the other way around. I verified it the dirty way in schildichat for cross signing but it doesn't seem to help with weechat itself.

JRGonz avatar May 03 '25 22:05 JRGonz

Is this for encrypted rooms or unecrypted too?

panekj avatar May 03 '25 22:05 panekj

Is this for encrypted rooms or unecrypted too?

Unencrypted. When I send messages in other apps they do not show in weechat.

JRGonz avatar May 03 '25 22:05 JRGonz

I’m a little confused here. So this has been merged and I should be able to verify devices? I don’t see any options to do it in /matrix do I have to logout, log back in, and verify from another client?

JRGonz avatar May 04 '25 22:05 JRGonz

I've been hoarding this PR for way too long so I'm just going to merge it as is. Managed to sidetrack myself into implementing autosort compat and debugging cache issues after state reset matrix bug.

panekj avatar Oct 09 '25 21:10 panekj