diff options
author | Krzysztof Klinikowski <kkszysiu@gmail.com> | 2010-01-25 22:36:51 +0100 |
---|---|---|
committer | Krzysztof Klinikowski <kkszysiu@gmail.com> | 2010-01-25 22:36:51 +0100 |
commit | a4949b7363af6f1fb2e48e99ab41f48f20e60df5 (patch) | |
tree | dc74330a9bc86547455cbebbb28e63ab5287eef3 /sunshine/connection.py | |
parent | 5ccd0c47c3bd62507ef2ef07193c337aa7b5ee06 (diff) |
Pending messages time should be displayed correctly now.
Diffstat (limited to 'sunshine/connection.py')
-rw-r--r-- | sunshine/connection.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sunshine/connection.py b/sunshine/connection.py index 0db05bd..0cb0232 100644 --- a/sunshine/connection.py +++ b/sunshine/connection.py @@ -535,7 +535,11 @@ class SunshineConnection(telepathy.server.Connection, handle = SunshineHandleFactory(self, 'contact', str(msg.sender), None) - timestamp = int(time.time()) + + if int(msg.content.klass) == 9: + timestamp = int(msg.time) + else: + timestamp = int(time.time()) type = telepathy.CHANNEL_TEXT_MESSAGE_TYPE_NORMAL logger.info("User %s sent a message" % handle.name) |