frontends: printInfo and printMessage timestamp attribute defaults to None instead of ''
This commit is contained in:
parent
4f339272b7
commit
7a344fcf5d
1 changed files with 15 additions and 11 deletions
|
|
@ -308,9 +308,9 @@ class QuickApp(object):
|
|||
|
||||
timestamp = extra.get('archive')
|
||||
if type_ == C.MESS_TYPE_INFO:
|
||||
self.chat_wins[win.bare].printInfo( msg, timestamp = float(timestamp) if timestamp else '')
|
||||
self.chat_wins[win.bare].printInfo(msg, timestamp=float(timestamp) if timestamp else None)
|
||||
else:
|
||||
self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '')
|
||||
self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else None)
|
||||
|
||||
def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, callback=None, errback=None, profile_key="@NONE@"):
|
||||
if to_jid.startswith(C.PRIVATE_PREFIX):
|
||||
|
|
|
|||
Loading…
Reference in a new issue