Sending message with "local" account causes crash
Bug description
Sending a message on the "local" account causes this crash:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nbxmpp/idlequeue.py", line 549, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python2.7/site-packages/nbxmpp/idlequeue.py", line 413, in _process_events
obj.pollout()
File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 502, in pollout
self._do_send()
File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 591, in _do_send
self._on_send()
File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 622, in _on_send
self._owner.on_message_sent(self.fd)
File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 220, in on_message_sent
self.on_ok(id_)
File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 349, in on_send_ok
chatstate=None))
File "/usr/share/gajim/src/common/nec.py", line 74, in push_incoming_event
if event_object.generate():
File "/usr/share/gajim/src/common/connection_handlers_events.py", line 1614, in generate
if not self.automatic_message:
AttributeError: 'MessageSentEvent' object has no attribute 'automatic_message'
Steps to reproduce
- Start gajim
- Go online with the "local" account (no server)
- Use Pidgin (lets call it user A) to go online in the same network
- Send a message (for instance, an http:// URL) to user A will cause the crash, although the message arrives
Software versions
OS version: Fedora 24
GTK version: gtk2-2.24.31-1.fc24.x86_64 / gtk3-3.20.9-1.fc24.x86_64
PyGTK version: pygtk2-2.24.0-14.fc24.x86_64 gajim version: 0.16.6