summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-10-17 23:53:24 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-10-17 23:53:24 +0100
commite9abbe89f3fd465089b2840d954d93fba933a44a (patch)
tree44a565001fa7065cd2f4dd284754e01b6285d654 /webclient/components
parentfix webclient to know about right timestamps (diff)
downloadsynapse-e9abbe89f3fd465089b2840d954d93fba933a44a.tar.xz
more timestamp fixes
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/event-handler-service.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index e990d42d05..492ec08bca 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -148,10 +148,10 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
         // ts is later.
         var latestData = true;
         if (!isLiveEvent) {
-            var eventTs = event.ts;
+            var eventTs = event.origin_server_ts;
             var storedEvent = $rootScope.events.rooms[event.room_id][event.type];
             if (storedEvent) {
-                if (storedEvent.ts > eventTs) {
+                if (storedEvent.origin_server_ts > eventTs) {
                     // ignore it, we have a newer one already.
                     latestData = false;
                 }