added automatic_message flag to GcMessageOutgoingEvent (bugfix)
This commit is contained in:
parent
10871b9a33
commit
8bfc286d8f
|
@ -2695,6 +2695,7 @@ class GcMessageOutgoingEvent(nec.NetworkOutgoingEvent):
|
||||||
self.is_loggable = True
|
self.is_loggable = True
|
||||||
self.control = None
|
self.control = None
|
||||||
self.correction_msg = None
|
self.correction_msg = None
|
||||||
|
self.automatic_message = True
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -2021,7 +2021,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
gajim.nec.push_outgoing_event(GcMessageOutgoingEvent(None,
|
gajim.nec.push_outgoing_event(GcMessageOutgoingEvent(None,
|
||||||
account=self.account, jid=self.room_jid, message=message,
|
account=self.account, jid=self.room_jid, message=message,
|
||||||
xhtml=xhtml, label=label, callback=_cb,
|
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.get_buffer().set_text('')
|
||||||
self.msg_textview.grab_focus()
|
self.msg_textview.grab_focus()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue