diff frontends/src/quick_frontend/quick_app.py @ 698:d731ae066158

core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
author Goffi <goffi@goffi.org>
date Wed, 13 Nov 2013 13:58:10 +0100
parents f7878ad3c846
children 682933ca304c
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Wed Nov 13 13:57:36 2013 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Wed Nov 13 13:58:10 2013 +0100
@@ -282,11 +282,11 @@
         timestamp = extra.get('archive')
         self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '')
 
-    def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"):
+    def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@"):
         if to_jid.startswith(const_PRIVATE_PREFIX):
             to_jid = unescapePrivate(to_jid)
             mess_type = "chat"
-        self.bridge.sendMessage(to_jid, message, subject, mess_type, options, profile_key)
+        self.bridge.sendMessage(to_jid, message, subject, mess_type, extra, profile_key)
 
     def newAlert(self, msg, title, alert_type, profile):
         if not self.check_profile(profile):