powered by Jive Software

Stope Retreiving all chat histories when rejoin group

I’m using Smack v4.3.0 for Android. The issue is, when a user rejoins a group, all the chat histories are being delivered. Want to know how to disable this. I’m using the following code snippet for joining the group.

MultiUserChat multiUserChat=multiUserChatManager.getMultiUserChat(JidCreate.entityBareFrom("man@conference.localhost"));

but it doesn’t work
please any help

Your code doesn’t make sense, since you don’t use the result of the builder anywhere. Try this:

MultiUserChat chat = getMultiUserChat(mucJid);
MucEnterConfiguration enterConfig = chat.getEnterConfigurationBuilder(nickname)
1 Like

thanks that solved my problem , i appreciate your help