3 ms·
> Doesn't the protocol already need to do something to support that? Presumably it's an out-of-band notification, and they needed to add support for that. Yep,
by ryukafalz 6y ago
> Doesn't the protocol already need to do something to support that? Presumably it's an out-of-band notification, and they needed to add support for that.
Yep, it does, so you could do this; the problem for the Linux desktop is just that there isn't a standardized out-of-band push notification system yet. (I saw another commenter mention UnifiedPush, which sounds interesting - in any case it's not widely supported yet.)
> As a side note, Jabber did add an in-band way as you suggest
It's been a while since I looked into this in detail, but IIRC Jabber generally doesn't have a server-side way to determine which messages should notify? As I recall, the protocol was designed with smart clients and dumb servers in mind, though I'm sure some of that has changed over time - but that design decision doesn't lend itself as well to clients on battery-constrained devices.
Although with that said, the fact that you aren't required to be in the same set of MUCs on every device helps in battery-constrained devices; for example I only stay joined to the rooms that my friends are in from my phone, unless I need to join another one temporarily.
- aidenn0 6y agoRe: jabber https://xmpp.org/extensions/xep-0352.html https://xmpp.org/extensions/xep-0352.html
- ryukafalz 6y agoClient state indication helps for things like suppressing presence updates, but it doesn't go as far as to e.g. let you only be notified for messages that would highlight you in a large MUC, right? So either you're joined to the MUC and receive all messages in it, or you leave the MUC and don't get notified about any of them. Although now that I read the spec again, it seems general enough that maybe it could be used to implement behavior like that? I don't think I've seen any servers that do, though.
- aidenn0 6y agoProsody has an option for filtering MUC messages with mod_csi_battery_saver (which is the currently recommended community module for CSI), I don't think ejabberd does though. > groupchat messages must set a subject or have the user’s username or nickname mentioned in the messages (or be encrypted) to count as “important”.