prevent traceback. Fixes #7978

This commit is contained in:
Yann Leboulanger 2016-04-03 21:32:53 +02:00
parent f2dd9a9773
commit 7c2c4cd0ac

View file

@ -2755,7 +2755,7 @@ class Connection(CommonConnection, ConnectionHandlers):
msg_iq = nbxmpp.Message(obj.jid, obj.message, typ='groupchat',
xhtml=obj.xhtml)
if obj.label is not None:
msg_iq.addChild(node=label)
msg_iq.addChild(node=obj.label)
obj.msg_id = self.connection.send(msg_iq)
gajim.nec.push_incoming_event(MessageSentEvent(None, conn=self,
jid=obj.jid, message=obj.message, keyID=None, chatstate=None,