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
1 changed files with 4 additions and 0 deletions

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_whois", values[2] ? "anyone" : "moderators");
} }
options1.putString("muc#roomconfig_persistentroom", "1"); 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, xmppConnectionService.pushConferenceConfiguration(mConversation,
options1, options1,
ConferenceDetailsActivity.this); ConferenceDetailsActivity.this);