aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java3
-rw-r--r--src/main/res/values/strings.xml1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index e24f87d02..bdf36c8aa 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -1155,6 +1155,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
hideSnackbar();
break;
}
+ } else if ((mode == Conversation.MODE_MULTI
+ && !conversation.getMucOptions().participating())) {
+ showSnackbar(R.string.no_write_access_in_public_muc, R.string.ok, clickToMuc);
} else if (account.hasPendingPgpIntent(conversation)) {
showSnackbar(R.string.openpgp_messages_found, R.string.decrypt, clickToDecryptListener);
} else if (mode == Conversation.MODE_SINGLE
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index c9441f595..7eb7f12a5 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -757,4 +757,5 @@
<string name="destroy_muc_text">Would you like to destroy the group chat %s? This will remove this group chat permanently.</string>
<string name="destroy_muc_succeed">Group chat successfully destroyed</string>
<string name="destroy_muc_failed">Group chat could not be destroyed</string>
+ <string name="no_write_access_in_public_muc">You are not participating this group chat and have no write access at the moment.\nPlease go to the group chat details by pressing <b>OK</b> and send a private message to a moderator, administator or owner by long clicking one of the members name at the top of the list to ask for write access.</string>
</resources>