Is it possible to disable the group chat message history on an open fire server?

I created group chat application, and when implementing the functions of group chat, I ran into a problem: when I each time join the room,open fire sends last two days messages.

Here is the message that I get every time I enter the room.

<message xmlns="jabber:client" id="05qEM-18" to="210@openfire.indianic.net/94e509b9" type="groupchat" from="top@conference.openfire.indianic.net/258"><body>Very good morning!!!</body><delay xmlns="urn:xmpp:delay" stamp="2014-03-19T05:15:06.542Z" from="258@openfire.indianic.net/Smack"/><x xmlns="jabber:x:delay" stamp="20140319T05:15:06" from="258@openfire.indianic.net/Smack"/></message>

Can any buddy guess where the option is disable history messageon open fire server? Therefore, I receive each message only once.

Thanks in advance.

+4
source share
3 answers

, , , XEP-0045:

<presence
    from='hag66@shakespeare.lit/pda'
    id='n13mt3l'
    to='coven@chat.shakespeare.lit/thirdwitch'>
  <x xmlns='http://jabber.org/protocol/muc'>
    <history maxchars='0'/>
  </x>
</presence>

XMPP "maxchars" "maxstanzas" "seconds" .

+5

, , ! - " ", , " ". , . . " ", , .

:

Step 1

Step 2

+1

The best I have found to manage any conversation history is to simply modify the embedded-db.script file. Just edit it by running Notepad ++ and deleting something with the following statements (INSERT INTO OFPROPERTY VALUES)or (INSERT INTO OFROSTERGROUPS VALUES)or (INSERT INTO OFID VALUES). This will clear chat history, including group chat. You can sift and delete only what you need, of course. I would copy and paste the database, if you delete something that you need - make sure you stop the server first ...

-1
source

Source: https://habr.com/ru/post/1532411/


All Articles