aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rwxr-xr-xexternal/messenger.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/messenger.py b/external/messenger.py
index 2162ced..cd5d972 100755
--- a/external/messenger.py
+++ b/external/messenger.py
@@ -162,6 +162,11 @@ class InitialSyncThread(threading.Thread):
else:
messages.append(m)
for m in reversed(messages):
+ if m.text is None:
+ m.text = ""
+ m.text = "[{}] {}".format(
+ time.strftime("%Y-%m-%d %H:%M %Z", time.localtime(float(m.timestamp)/1000)).strip(),
+ m.text)
self.bridge.onMessage(thread_id=thread.uid,
thread_type=thread.type,
message_object=m)