Fix regression from 4caa4971

This commit is contained in:
Philipp Hörist 2018-04-05 22:14:57 +02:00
parent 711f3cbbb0
commit cf911b3984
1 changed files with 2 additions and 0 deletions

View File

@ -2695,6 +2695,8 @@ class RosterWindow:
self.draw_account(obj.conn.name) self.draw_account(obj.conn.name)
def _nec_decrypted_message_received(self, obj): def _nec_decrypted_message_received(self, obj):
if not obj.msgtxt:
return True
if obj.mtype not in ('normal', 'chat'): if obj.mtype not in ('normal', 'chat'):
return return
if obj.mtype == 'normal' and obj.popup: if obj.mtype == 'normal' and obj.popup: