Commit 7d6bbdb3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

make it clearer when groupchat messages have an error.

parent 21b2448d
......@@ -1008,6 +1008,11 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.get_gc_control()
if self.gc_control and self.jid == self.fjid:
if self.mtype == 'error':
self.msgtxt = _('error while sending %(message)s ( %(error)s )'\
) % {'message': self.msgtxt,
'error': self.stanza.getErrorMsg()}
self.stanza.delChild('html')
# message from a gc without a resource
self.mtype = 'groupchat'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment