diff src/browser/sat_browser/chat.py @ 872:fa29524774d6

browser (chat): use new style bridge call for mucLeave
author Goffi <goffi@goffi.org>
date Mon, 29 Feb 2016 12:40:17 +0100
parents 2491898b3041
children e8b133b77aa4
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Mon Feb 29 12:40:14 2016 +0100
+++ b/src/browser/sat_browser/chat.py	Mon Feb 29 12:40:17 2016 +0100
@@ -25,7 +25,6 @@
 from sat_frontends.tools import jid
 from sat_frontends.quick_frontend import quick_widgets, quick_games, quick_menus
 from sat_frontends.quick_frontend.quick_chat import QuickChat
-from sat.core.i18n import _
 
 from pyjamas.ui.AbsolutePanel import AbsolutePanel
 from pyjamas.ui.VerticalPanel import VerticalPanel
@@ -105,7 +104,7 @@
             self.avatarListener = self.onAvatarUpdate
             host.addListener('avatar', self.avatarListener, [C.PROF_KEY_NONE])
             Window.addWindowResizeListener(self)
-        
+
         self._body.add(chat_area)
         self.content = AbsolutePanel()
         self.content.setStyleName('chatContent')
@@ -201,7 +200,7 @@
         libervia_widget.LiberviaWidget.onQuit(self)
         if self.type == C.CHAT_GROUP:
             self.host.removeListener('presence', self.presenceListener)
-            self.host.bridge.call('mucLeave', None, unicode(self.target.bare))
+            self.host.bridge.mucLeave(self.target.bare, profile=C.PROF_KEY_NONE)
 
     def newMessage(self, from_jid, target, msg, type_, extra, profile):
         header_info = extra.pop('header_info', None)