diff src/browser/libervia_main.py @ 692:7a9c7b9f6a28

browser_side: use host.default_muc instead of C.DEFAULT_MUC
author souliane <souliane@mailoo.org>
date Thu, 09 Apr 2015 11:37:25 +0200
parents 3845a086f0b3
children 82123705474b
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Thu Apr 09 11:46:45 2015 +0200
+++ b/src/browser/libervia_main.py	Thu Apr 09 11:37:25 2015 +0200
@@ -404,6 +404,10 @@
         #we ask for our own microblogs:
         self.loadOurMainEntries()
 
+        def gotDefaultMUC(default_muc):
+            self.default_muc = default_muc
+        self.bridge.getDefaultMUC(profile=None, callback=gotDefaultMUC)
+
     def addContactList(self, dummy):
         contact_list = ContactList(self)
         self.panel.addContactList(contact_list)
@@ -1090,7 +1094,7 @@
         @param failure (defer.Failure): Failure instance
         """
         # FIXME: remove asap, see self.showFailure
-        msg = _(u"Invalid room identifier. Please give a room short or full identifier like 'room' or 'room@%s'.") % C.DEFAULT_MUC_SERVICE
+        msg = _(u"Invalid room identifier. Please give a room short or full identifier like 'room' or '%s'.") % self.default_muc
         self.showFailure(err_data, msg)