Getting All group messages back when connecting to xmpp from ios and android end

前端 未结 1 1985
傲寒
傲寒 2021-01-26 09:36

I am using openfire version 4.0.1

Using openfire Rest Api i have created group chat rooms in the service servicename.xx.xx.xxx.xxx.

Now rooms are

相关标签:
1条回答
  • 2021-01-26 09:56

    You have to specify your Openfire version.

    However, for Openfire 4.0.2

    Groupchat history it's based on many params on database and some on client. Behaviour it's not ever linear.

    1) in table OFPROPERTY the property xmpp.muc.history.reload.limit (this works in days, for example put 30 means "last 30 days")

    2) in table OFMUCSERVICEPROP, for each serviceid, you can have (or not) 0+ values. For example, for serviceid 1 (conference), without params you'll get last 25 messages, or you can set by db or programmatically name history.type and type (all to get all the history, none for your case)

    3) With smack API You can send a DiscussionHistory request while joining chat: with this object you can set to 0 all the parameters (like: number of stanzas and so on).

    history.type it's the top level one to set: just declare it as none and no history will be retrived.

    0 讨论(0)
提交回复
热议问题