comparison src/core/sat_main.py @ 513:8ee9113d307b

core, quick_frontend, primitivus, wixi, bridge: fixed delayed message timestamp: - new "extra" parameter in newMessage signal
author Goffi <goffi@goffi.org>
date Sat, 20 Oct 2012 17:23:56 +0200
parents 862c0d6ab974
children a31abb97310d
comparison
equal deleted inserted replaced
512:862c0d6ab974 513:8ee9113d307b
499 message.addElement("body", "jabber:client", mess_data["message"]) 499 message.addElement("body", "jabber:client", mess_data["message"])
500 client.xmlstream.send(message) 500 client.xmlstream.send(message)
501 if mess_data["type"]!="groupchat": 501 if mess_data["type"]!="groupchat":
502 self.memory.addToHistory(current_jid, jid.JID(to), unicode(mess_data["message"]), unicode(mess_data["type"]), profile=profile) #we don't add groupchat message to history, as we get them back 502 self.memory.addToHistory(current_jid, jid.JID(to), unicode(mess_data["message"]), unicode(mess_data["type"]), profile=profile) #we don't add groupchat message to history, as we get them back
503 #and they will be added then 503 #and they will be added then
504 self.bridge.newMessage(message['from'], unicode(mess_data["message"]), mess_type=mess_data["type"], to_jid=message['to'], profile=profile) #We send back the message, so all clients are aware of it 504 self.bridge.newMessage(message['from'], unicode(mess_data["message"]), mess_type=mess_data["type"], to_jid=message['to'], extra={}, profile=profile) #We send back the message, so all clients are aware of it
505 505
506 506
507 def setPresence(self, to="", show="", priority = 0, statuses={}, profile_key='@DEFAULT@'): 507 def setPresence(self, to="", show="", priority = 0, statuses={}, profile_key='@DEFAULT@'):
508 """Send our presence information""" 508 """Send our presence information"""
509 profile = self.memory.getProfileName(profile_key) 509 profile = self.memory.getProfileName(profile_key)