From 2e587c52d602e58d2eb1f49110b5c4bce2693ed9 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 16 Jun 2018 23:25:03 +0200 Subject: edit public=true/false property in mucs --- src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/de/pixart') diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index e31eba559..c7847f64b 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -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); -- cgit v1.2.3