Set no-store hint on groupchat chatstates

This commit is contained in:
Philipp Hörist 2018-05-07 18:04:24 +02:00
parent 63bd4967d9
commit 8b9eb59ee4
1 changed files with 2 additions and 0 deletions

View File

@ -2683,6 +2683,8 @@ class Connection(CommonConnection, ConnectionHandlers):
if obj.chatstate:
msg_iq.setTag(obj.chatstate, namespace=nbxmpp.NS_CHATSTATES)
if not obj.message:
msg_iq.setTag('no-store', namespace=nbxmpp.NS_MSG_HINTS)
if obj.label is not None:
msg_iq.addChild(node=obj.label)