From 7bcbca7aeeb3a8ab61fb21f3e8e5c43bf2e2d551 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 2 Jun 2018 12:06:01 +0200 Subject: [PATCH] edit public=true/false property in mucs --- .../eu/siacs/conversations/ui/ConferenceDetailsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java index 784147edf..58a58667f 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java @@ -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);