poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
954 stars 119 forks source link

commands: Add /query support, to create a private chat with another user #338

Open 3v1n0 opened 1 year ago

3v1n0 commented 1 year ago

Support initiating chats with other users using /query command.

When inside a matrix channel or server user id can be in the form:

When inside a channel, can be just the nickname of the user, and we'll figure out the corresponding id.

Re-initiating a left chat is supported, but may need some fixes.

strk commented 1 year ago

I've just tested this, works great, thanks @3v1n0 ! It would be great to get /names working next :)

ilf commented 1 year ago

Thanks for this! It should fix https://github.com/poljar/weechat-matrix/issues/155 and https://github.com/poljar/weechat-matrix/issues/65

What's needed to get it merged?

yourealwaysbe commented 3 hours ago

I found a bug in commands.py. line 1164 erases the original value of buffer so that lookups on other servers will fail. This causes a problem if you want to manage multiple matrix accounts.