Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道是否有一种方法可以在不加入房间的情况下查询 xmpp(特别是 ejabberd)中 muc 中的最后 n 条消息。
谢谢。
不,不修改服务器软件。
如果您确实加入,您可以指定您想要的<history/>元素历史数量,请参阅在 XEP 45 中管理讨论历史。
<history/>
消息保存在每个聊天室进程内存中。您将不得不修改代码以通过编程方式公开对该数据结构的访问。