Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 605:c8b129a3c209
core: fixed sendMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Feb 2013 12:25:34 +0100 |
parents | 952322b1d490 |
children | c123dddaea6b |
comparison
equal
deleted
inserted
replaced
604:16a9affc49cf | 605:c8b129a3c209 |
---|---|
329 contact = self.contact_list.getContact() ###Based on the fact that there is currently only one contact selectableat once | 329 contact = self.contact_list.getContact() ###Based on the fact that there is currently only one contact selectableat once |
330 if contact: | 330 if contact: |
331 chat = self.chat_wins[contact] | 331 chat = self.chat_wins[contact] |
332 try: | 332 try: |
333 self.sendMessage(contact, | 333 self.sendMessage(contact, |
334 editBar.get_edit_text(), | 334 editBar.get_edit_text(), |
335 mess_type = "groupchat" if chat.type == 'group' else "chat", | 335 mess_type = "groupchat" if chat.type == 'group' else "chat", |
336 profile_key=self.profile) | 336 profile_key=self.profile) |
337 except: | 337 except: |
338 self.notify(_("Error while sending message")) | 338 self.notify(_("Error while sending message")) |
339 editBar.set_edit_text('') | 339 editBar.set_edit_text('') |
340 elif self.mode == 'COMMAND': | 340 elif self.mode == 'COMMAND': |
341 self.commandHandler(editBar) | 341 self.commandHandler(editBar) |