Is it possible without joining to the room to get:
the number of unread messages from MUC? I have seen similar questions ~7 years ago but still didn't find such solution. Or is it possible to get information if there is a unread message?
the last message that was written in the room?
Thanks
If the MUC room has archiving enabled, anybody can query it as shown in https://xmpp.org/extensions/xep-0313.html#example-5
For example:
The response includes all the room messages:
"Unread" is a concept that only the client knows, not the server. The client must tell the server what was the last message the client has read. Maybe using https://xmpp.org/extensions/xep-0313.html#filter-time
At a quick look I didn't find anything for that in XEP-0313. If you take a closer look, maybe you find some solution.