# HG changeset patch # User Goffi # Date 1321033223 -3600 # Node ID bb0236633da58e32c4408d1f6266c1a68b6a8de6 # Parent ae446194c20c4fe6ad67a369a7985774ea2f5e9c core: outgoing groupchat message are not added to history anymore diff -r ae446194c20c -r bb0236633da5 src/core/sat_main.py --- a/src/core/sat_main.py Tue Nov 08 22:21:58 2011 +0100 +++ b/src/core/sat_main.py Fri Nov 11 18:40:23 2011 +0100 @@ -438,8 +438,9 @@ message.addElement("subject", "jabber:client", subject) message.addElement("body", "jabber:client", msg) self.profiles[profile].xmlstream.send(message) - self.memory.addToHistory(current_jid, jid.JID(to), unicode(msg), profile=profile) if type!="groupchat": + self.memory.addToHistory(current_jid, jid.JID(to), unicode(msg), profile=profile) #we don't add groupchat message to history, as we get them back + #and they will we added then self.bridge.newMessage(message['from'], unicode(msg), mess_type=type, to_jid=message['to'], profile=profile) #We send back the message, so all clients are aware of it