diff --git a/src/common/connection.py b/src/common/connection.py index 18824b3aa..ffe694dd0 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1781,6 +1781,8 @@ class Connection(CommonConnection, ConnectionHandlers): if obj.callback: obj.callback(msg_id, *obj.callback_args) + if not obj.is_loggable: + return self.log_message(jid, msg, forward_from, session, original_message, subject, type_) diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index df850a284..27541b08c 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -2067,6 +2067,7 @@ class MessageOutgoingEvent(nec.NetworkIncomingEvent): self.callback = None self.callback_args = [] self.now = False + self.is_loggable = True def generate(self): - return True \ No newline at end of file + return True