diff --git a/frontends/src/primitivus/primitivus b/frontends/src/primitivus/primitivus index bef4059d..1b8f7c70 100755 --- a/frontends/src/primitivus/primitivus +++ b/frontends/src/primitivus/primitivus @@ -331,9 +331,9 @@ class PrimitivusApp(QuickApp): chat = self.chat_wins[contact] try: self.sendMessage(contact, - editBar.get_edit_text(), - mess_type = "groupchat" if chat.type == 'group' else "chat", - profile_key=self.profile) + editBar.get_edit_text(), + mess_type = "groupchat" if chat.type == 'group' else "chat", + profile_key=self.profile) except: self.notify(_("Error while sending message")) editBar.set_edit_text('') diff --git a/src/core/sat_main.py b/src/core/sat_main.py index 4bed334f..6dd875a0 100644 --- a/src/core/sat_main.py +++ b/src/core/sat_main.py @@ -469,7 +469,7 @@ class SAT(service.Service): def _sendMessage(self, to_s, msg, subject=None, mess_type='auto', profile_key='@NONE@'): to_jid = jid.JID(to_s) - self.sendMessage(to_jid, msg, subject, mess_type, profile_key) + self.sendMessage(to_jid, msg, subject, mess_type, profile_key=profile_key) def sendMessage(self, to_jid, msg, subject=None, mess_type='auto', no_trigger = False, profile_key='@NONE@'): #FIXME: check validity of recipient