[ejabberd] Managing Diskussion History
Badlop
badlop at gmail.com
Fri Feb 27 18:01:59 MSK 2009
2009/2/27 Stephan Maihöfer <sma at turtle-entertainment.de>:
> does ejabberd implement this part of the MUC-Standard yet?
>
> http://xmpp.org/extensions/xep-0045.html#enter-managehistory
>
> it seems I get no answer when sending the according stanzas
> to a muc room.
It is implemented, and it works for me.
I create a persistent room and add 22 messages. Then the owner leaves
the room. The user then sends presence to the room:
<presence to='room1 at conference.localhost/test'>
<x xmlns='http://jabber.org/protocol/muc'>
<password/>
<history maxstanzas='2'/>
</x>
</presence>
And he gets only the last 2 stanzas of history:
<presence from='room1 at conference.localhost/test'
to='test at localhost/Tka'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item role='moderator'
affiliation='owner'
jid='test at localhost/Tka'/>
</x>
</presence>
<message from='room1 at conference.localhost/test'
id='20'
type='groupchat'
to='test at localhost/Tka'>
<body>21</body>
<x xmlns='jabber:x:delay'
stamp='20090227T14:56:47'/>
</message>
<message from='room1 at conference.localhost/test'
id='21'
type='groupchat'
to='test at localhost/Tka'>
<body>and 22</body>
<x xmlns='jabber:x:delay'
stamp='20090227T14:56:49'/>
</message>
---
Badlop,
ProcessOne
More information about the ejabberd
mailing list