aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/generator
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-02-07 21:11:50 +0100
committerChristian Schneppe <christian@pix-art.de>2019-02-07 21:11:50 +0100
commit1b3406cdbb6c620cca975b0bc32b43b60fa246cb (patch)
tree159b4be35bfcc995ba5a8dc2638335bdc998ca9a /src/main/java/de/pixart/messenger/generator
parentba4acfd2c11b55373cc856ee48ffb9a56030e6f4 (diff)
provide the same fab submenu for both tabs. rename tab to bookmark
Diffstat (limited to 'src/main/java/de/pixart/messenger/generator')
-rw-r--r--src/main/java/de/pixart/messenger/generator/IqGenerator.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/IqGenerator.java b/src/main/java/de/pixart/messenger/generator/IqGenerator.java
index b2f43cbcf..d7ac6f994 100644
--- a/src/main/java/de/pixart/messenger/generator/IqGenerator.java
+++ b/src/main/java/de/pixart/messenger/generator/IqGenerator.java
@@ -466,7 +466,7 @@ public class IqGenerator extends AbstractGenerator {
return packet;
}
- public static Bundle defaultRoomConfiguration() {
+ public static Bundle defaultGroupChatConfiguration() {
Bundle options = new Bundle();
options.putString("muc#roomconfig_persistentroom", "1");
options.putString("muc#roomconfig_membersonly", "1");
@@ -478,6 +478,19 @@ public class IqGenerator extends AbstractGenerator {
return options;
}
+ public static Bundle defaultChannelConfiguration() {
+ Bundle options = new Bundle();
+ options.putString("muc#roomconfig_persistentroom", "1");
+ options.putString("muc#roomconfig_membersonly", "0");
+ options.putString("muc#roomconfig_publicroom", "1");
+ options.putString("muc#roomconfig_whois", "moderators");
+ options.putString("muc#roomconfig_enablearchiving", "1"); //prosody
+ options.putString("mam", "1"); //ejabberd community
+ options.putString("muc#roomconfig_mam", "1"); //ejabberd saas
+ return options;
+ }
+
+
public IqPacket requestPubsubConfiguration(Jid jid, String node) {
return pubsubConfiguration(jid, node, null);
}