core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage

This commit is contained in:
Goffi 2013-11-13 13:58:10 +01:00
commit 9d42c269db

View file

@ -282,11 +282,11 @@ class QuickApp(object):
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):