# HG changeset patch # User Goffi # Date 1546623883 -3600 # Node ID 286a32a187e7abbd78f90eeb58c465ce8b8ef9e0 # Parent ae495f27b31699afd147b942a50c1d6589e9b46e core (xmpp): don't add to history a message if there is no message and no subject. diff -r ae495f27b316 -r 286a32a187e7 sat/core/xmpp.py --- a/sat/core/xmpp.py Fri Jan 04 11:14:53 2019 +0100 +++ b/sat/core/xmpp.py Fri Jan 04 18:44:43 2019 +0100 @@ -970,7 +970,11 @@ log.info(u"history is skipped as requested") data[u"extra"][u"history"] = C.HISTORY_SKIP else: - return self.host.memory.addToHistory(self.parent, data) + if data[u"message"] or data[u"subject"]: # we need a message to store + return self.host.memory.addToHistory(self.parent, data) + else: + log.debug(u"not storing empty message to history: {data}" + .format(data=data)) def bridgeSignal(self, __, data): try: