edit public=true/false property in mucs

This commit is contained in:
Daniel Gultsch 2018-06-02 12:06:01 +02:00
parent f58c1732b6
commit 7bcbca7aee

View file

@ -166,6 +166,10 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
options1.putString("muc#roomconfig_whois", values[2] ? "anyone" : "moderators");
}
options1.putString("muc#roomconfig_persistentroom", "1");
final boolean whois = values.length == 2 ? values[1] : values[2];
if (values[0] == whois) {
options1.putString("muc#roomconfig_publicroom",whois ? "0" : "1");
}
xmppConnectionService.pushConferenceConfiguration(mConversation,
options1,
ConferenceDetailsActivity.this);