edit public=true/false property in mucs

This commit is contained in:
Christian Schneppe 2018-06-16 23:25:03 +02:00
parent b1941d488c
commit 2e587c52d6

View file

@ -212,6 +212,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);