Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MUC room message history getting only 20 messages #1203

Open
devarshi089 opened this issue Mar 26, 2021 · 2 comments
Open

MUC room message history getting only 20 messages #1203

devarshi089 opened this issue Mar 26, 2021 · 2 comments

Comments

@devarshi089
Copy link

devarshi089 commented Mar 26, 2021

Hi, I'm signing into the app and created the MUC room and joining the room. I'm only getting 20 messages, but in my MUC room have more than 20. What I'm doing wrong. I have already pass the history element but, not able to get the past 1000 messages. Can any one help me.

let xmppRoom = XMPPRoom(roomStorage: XMPPRoomHybridStorage.sharedInstance(), jid: XMPPJID(string: roomId!)!)
xmppRoom.activate(xmppStream)
xmppRoom.addDelegate(self, delegateQueue: DispatchQueue.main)
let historyElement = DDXMLElement(name: "history")
historyElement.addAttribute(withName: "maxstanzas", stringValue: "1000")
xmppRoom.join(usingNickname: userJabberId, history: historyElement)
@arunpandiyanp
Copy link

@devarshi089 Found any solution?

@vitalyster
Copy link
Contributor

Duplicate of #1166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants