do not traceback when we receive a corboned message sent without a to attribute. Fixes #8194

This commit is contained in:
Yann Leboulanger 2015-11-24 21:07:59 +01:00
parent 77382c5c47
commit 11970eb705
1 changed files with 2 additions and 0 deletions

View File

@ -1147,6 +1147,8 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if not frm:
frm = gajim.get_jid_from_account(account)
self.stanza.setTo(frm)
if not to:
to = gajim.get_jid_from_account(account)
self.stanza.setFrom(to)
self.sent = True
try: