6 ms·
Querying past messages works on both rooms and accounts (XEP-0313). You can filter by id (e.g. "catch up" since some previous message) or by time range (useful
by MattJ100 3y ago
Querying past messages works on both rooms and accounts (XEP-0313). You can filter by id (e.g. "catch up" since some previous message) or by time range (useful for a history browse UI).
It has been this way for a long time... I quickly checked the repo history, and Prosody's code for this dates back to 2012.
- lxgr 3y agoBut when I go offline on my last device, I leave the room, right? Can I query the room’s message archive after rejoining? And is there a solution to not display me as having left and rejoined the room to others every time this happens, i.e. persistent room membership?
- MattJ100 3y agoYes, of course you can query the messages - that's why the feature exists, and what XMPP clients use it for. Otherwise we'd be missing messages all the time. I think these days the term "leave" is a bit vague, and it's important to note that what you're talking about is pretty much just down to the UI that clients used for presence in the past. Most clients no longer show presence in that way, because it has been noisy and useless now for many years, and because mobile connectivity is the norm and "offline" does not mean "offline" (thanks to push notifications). Instead they prefer to show membership info instead (which is persistent). Most platforms (Slack, Matrix, etc.) also support presence and membership as separate things. But (as far as I know) they never rendered presence the way you describe ("X has left the chat"), as they were created after the mobile era was already in full swing.
- lxgr 3y agoAh, I didn’t know that membership in MUC was persistent in XMPP! Reading the XEP I got the idea that presence (definitely transient) and membership were the same thing in the scope of MUC. Given those two things, it seems like MUC really does support a Slack-like experience these days. That’s great – it definitely didn’t when I last used XMPP extensively! (Rest in peace, Google Talk XMPP federation – for a while, I could talk to all my friends on Jabber between that and MSN/ICQ bridges.)