# HG changeset patch # User souliane # Date 1401729906 -7200 # Node ID 3700165d68dc038a9d52de9bc2166514883c53cc # Parent aa15453ec54d37ff4bb63e4d446683d9908a50e5 core (xmpp): onMessage handles an eventual subject (used for announcement / headline message) diff -r aa15453ec54d -r 3700165d68dc src/core/xmpp.py --- a/src/core/xmpp.py Fri May 23 09:59:35 2014 +0200 +++ b/src/core/xmpp.py Mon Jun 02 19:25:06 2014 +0200 @@ -126,7 +126,8 @@ for e in message.elements(): if e.name == "body": data['body'] = e.children[0] if e.children else "" - break + elif e.name == "subject" and e.children: + data['extra']['subject'] = e.children[0] data['type'] = message['type'] if message.hasAttribute('type') else 'normal'