added automatic_message flag to GcMessageOutgoingEvent (bugfix)

This commit is contained in:
tmolitor 2016-02-21 16:45:31 +01:00
parent 10871b9a33
commit 8bfc286d8f
2 changed files with 3 additions and 1 deletions

View File

@ -2695,6 +2695,7 @@ class GcMessageOutgoingEvent(nec.NetworkOutgoingEvent):
self.is_loggable = True
self.control = None
self.correction_msg = None
self.automatic_message = True
def generate(self):
return True

View File

@ -2021,7 +2021,8 @@ class GroupchatControl(ChatControlBase):
gajim.nec.push_outgoing_event(GcMessageOutgoingEvent(None,
account=self.account, jid=self.room_jid, message=message,
xhtml=xhtml, label=label, callback=_cb,
callback_args=[_cb] + [message], correction_msg=correction_msg))
callback_args=[_cb] + [message], correction_msg=correction_msg,
automatic_message=False))
self.msg_textview.get_buffer().set_text('')
self.msg_textview.grab_focus()