aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-06-16 23:25:03 +0200
committerChristian Schneppe <christian@pix-art.de>2018-06-16 23:25:03 +0200
commit2e587c52d602e58d2eb1f49110b5c4bce2693ed9 (patch)
tree139b611519d8a4f6e9cc9f862d0be3b4ed3ac4a8 /src/main/java/de/pixart
parentb1941d488c56f8332e722c298d10f14c7a706166 (diff)
edit public=true/false property in mucs
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java4
1 files changed, 4 insertions, 0 deletions
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);