display error messages even if they don't have a <body>. Fixes #7798, see #6756

This commit is contained in:
Yann Leboulanger 2014-09-14 14:23:31 +02:00
parent a0d752b3ab
commit 012f39174f
1 changed files with 2 additions and 0 deletions

View File

@ -1230,6 +1230,8 @@ class ConnectionHandlersBase:
obj.session.control.conv_textview.hide_xep0184_warning(id_)
if obj.mtype == 'error':
if not obj.msgtxt:
obj.msgtxt = _('message')
if not obj.msgtxt:
return True
self.dispatch_error_message(obj.stanza, obj.msgtxt,