diff frontends/src/quick_frontend/constants.py @ 1385:0dca4f9b264d

primitivus: prefill "Join MUC" dialog with only the JID's node part when in debug version + display error directly from the DBus object
author souliane <souliane@mailoo.org>
date Tue, 24 Mar 2015 07:38:40 +0100
parents 3dae6964c071
children 069ad98b360d
line wrap: on
line diff
--- a/frontends/src/quick_frontend/constants.py	Tue Mar 24 07:34:32 2015 +0100
+++ b/frontends/src/quick_frontend/constants.py	Tue Mar 24 07:38:40 2015 +0100
@@ -42,13 +42,8 @@
     XMLUI_STATUS_CANCELLED = constants.Const.XMLUI_DATA_CANCELLED
 
     # MUC
-    USER_CHAT_STATES = {
-        "active": u'✔',
-        "inactive": u'☄',
-        "gone": u'✈',
-        "composing": u'✎',
-        "paused": u"⦷"
-    }
+    DEFAULT_MUC_NODE = u'sat'
+    DEFAULT_MUC = DEFAULT_MUC_NODE if constants.Const.APP_VERSION.endswith(u'D') else u"%s@%s" % (DEFAULT_MUC_NODE, 'chat.jabberfr.org')
 
     # Roster
     CONTACT_GROUPS = 'groups'
@@ -62,6 +57,13 @@
     # Chats
     CHAT_ONE2ONE = 'one2one'
     CHAT_GROUP = 'group'
+    USER_CHAT_STATES = {
+        "active": u'✔',
+        "inactive": u'☄',
+        "gone": u'✈',
+        "composing": u'✎',
+        "paused": u"⦷"
+    }
 
     # Widgets management
     # FIXME: should be in quick_frontend.constant, but Libervia doesn't inherit from it