core: outgoing groupchat message are not added to history anymore
This commit is contained in:
parent
4b5b8b8368
commit
4c4f590898
1 changed files with 2 additions and 1 deletions
|
|
@ -438,8 +438,9 @@ class SAT(service.Service):
|
|||
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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue