How to use MucEnterConfiguration in 4.2.0-beta1?

Hello,

I want to join (or create) a MUC using Smack 4.2.0-beta1.

For that I want to call createOrJoin on my MultiUserChat object.

But how can I get an MucEnterConfiguration object?

It doesn’t have a public constructor and neither does its builder.

I’ve been trying to figure it out how I’m supposed to use these classes but I really don’t get it.

Is this a bug?

I need to use the MucEnterConfiguration because I want to set some settings related to the chat history that I want to get.

Since DiscussionHistory is deprecated in 4.2.0. Or is there another way to get the chat history?

Thanks!

But how can I get an MucEnterConfiguration object?

Use MultiUserChat.getEnterConfigurationBuilder(Resourcepart)