summary refs log tree commit diff
path: root/webclient/recents/recents.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-15 17:31:07 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-15 17:31:07 +0200
commit8aa4b7bf7fdc31b3a146fe8fdc07922a4bfb1f78 (patch)
tree254a5f8e22853ef99294abef426a3d790df7a5de /webclient/recents/recents.html
parentRecents uses data directly from $rootscope.events (diff)
downloadsynapse-8aa4b7bf7fdc31b3a146fe8fdc07922a4bfb1f78.tar.xz
Recents must not show temporary fake messages
Diffstat (limited to 'webclient/recents/recents.html')
-rw-r--r--webclient/recents/recents.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/recents/recents.html b/webclient/recents/recents.html
index eb9e269a4b..789ffc9d20 100644
--- a/webclient/recents/recents.html
+++ b/webclient/recents/recents.html
@@ -16,7 +16,7 @@
                 <td class="recentsRoomSummaryTS">
                     <!-- Use a temp var as alias to the last room message.
                          Declaring it in this way ensures the data-binding -->
-                    {{lastMsg = room.messages[room.messages.length - 1];""}}
+                    {{ lastMsg = eventHandlerService.getLastMessage(room.room_id, true);"" }}
 
                     {{ (lastMsg.ts) | date:'MMM d HH:mm' }}
                 </td>