-
Notifications
You must be signed in to change notification settings - Fork 19
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
Notifications for Matrix chats #3
Comments
Hi Toban, I don't use the Matrix protocol myself, but let me show you what I have found. My plugin relies on WeeChat to correctly recognize private messages or highlights. Based on your description of the protocol, there seems to be no concept of private messages in Matrix (more on that later). This leaves us with highlights. On the weechat-matrix-protocol-script repo, there seems to be an opened issue to improve the plugin by adding support for highlighting in WeeChat. Such added support could enable my plugin to send notifications on highlights. However, I may be wrong (I don't know the Matrix protocol). As a side note, there is the BitlBee project, which provides an IM-to-IRC gateway. It supports many different chat protocols. For example, I use it as a Jabber/XMPP-to-IRC gateway so I can use WeeChat for both IRC and Jabber/XMPP messaging. Since it is an IM-to-IRC gateway, my plugin is able to show Jabber/XMPP notifications, just like IRC notifications. However, BitlBee does not support the Matrix protocol. There is an opened issue for that, though. Now, lets talk about "private-message notifications" for Matrix. You said that there are only chat rooms, which I think may be considered as channels on IRC. About which messages you would like to be notified? About all messages that happen in a chat room? There may be a lot of them. Only for some of them? Which ones? |
In Matrix, everything is a chatroom -- public rooms are equivalent to IRC channels, while private rooms are used for one-to-one or group chats. Ideally, it would be nice if this plugin could set notifications per-buffer, which would be agnostic about which protocol is being used. This way, I could just pick which Matrix chats should trigger notifications. It might be easier to implement highlights, as the Matrix plugin already highlights messages that mention my name (i.e., it colors the sender name and shows the count of highlighted messages in the status bar) -- I'm not sure what that issue you referenced is about. However, the Matrix highlights don't trigger notifications as IRC highlights do -- any idea why that is? I'm not interested in using an IRC gateway, as the Matrix protocol supports end-to-end encryption and I ultimately want to be using it. |
Fair enough.
I will have to take a look into that.
OK, that sounds reasonable. I will add support for this, probably during the next weekend. |
In commit 38507a2, I have added interception of all messages by the plugin, not only those tagged with
In commit 7532c7f, I have added a new option to the plugin: Would you be so kind as to check whether the plugin in its current form in the |
Thanks, it's working now!! In Matrix rooms, I now get notifications for each message in a one-on-one room and not for group chat rooms (and I can get those by enabling per-buffer notifications). Highlights trigger notifications in all rooms. However, my Matrix messages trigger notifications too (whenever notifications are enabled). I guess the function |
In commit 0ce4ff9, I have improved the removal of modes from the beginning of nicks. Originally, only Could you please verify whether this indeed fixes the problem for you? |
Now I'm really confused: in one buffer (a one-on-one chat room) my messages don't trigger notifications, but in all the others (including both one-on-one and group chat rooms), they do. I even rebooted to be sure. I can't figure out what's special about that one buffer... |
Excellent! It's working perfectly now. Thanks so much for solving this issue!! |
This plugin works great for IRC, nice work! I'm using the Matrix plugin (Matrix is a different chat protocol than IRC), but my Matrix chats don't generate notifications. This could be because Matrix uses chat rooms, so there's no notion of private messages.
Any ideas on how to get notifications from Matrix chat rooms?
The text was updated successfully, but these errors were encountered: