问题描述
xep-0313适用于名册,但不适用于聊天室.我可以获取名册的存档消息,但无法获取会议室的存档消息,为什么?
xep-0313 works for rosters, but does not work for room chat.I can get archive message for the rosters, but I can not get archive message for the room, why?
<iq type='set' id='juliet1'>
<query xmlns='urn:xmpp:mam:0'>
<x xmlns='jabber:x:data' type='submit'>
<field var='FORM_TYPE' type='hidden'>
<value>urn:xmpp:mam:0</value>
</field>
<field var='with'>
<value>[email protected]</value>
</field>
</x>
</query>
</iq>
接收消息为:
<message xmlns="jabber:client" from="[email protected]" to="[email protected]/iPhone" id="dHS0oejBDWHp">
<fin xmlns="urn:xmpp:mam:0" complete="true">
<set xmlns="http://jabber.org/protocol/rsm"/>
</fin>
<no-copy xmlns="urn:xmpp:hints"/>
</message>
推荐答案
我猜您正在使用ejabberd贡献模块.但是,已经在官方ejabberd中添加了一个新的官方MAM模块,它支持MAM的最新版本(今天为0.4)和MUC归档.
I guess you are using ejabberd contributed module. However, a new official MAM module has been added to official ejabberd and it support latest version of MAM (0.4 as of today) and MUC archiving.
它已在 ejabberd 15.06 中发布.您还可以从ejabberd Github存储库直接访问源.该模块位于: https://github.com/processone/ejabberd/blob/master/src/mod_mam.erl
It has been released in ejabberd 15.06. You can can also get direct access to source from ejabberd Github repository. The module is here: https://github.com/processone/ejabberd/blob/master/src/mod_mam.erl
这篇关于ejabberd MAM不适用于MUC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!