summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-08-29 17:21:57 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-08-29 17:22:48 +0100
commitb86d2a2d4fa6e9093bf08df88dce68e5f274c697 (patch)
treef6ac8fd7492cba165f3bc89f759f1010abb8ccfb /webclient/room/room.html
parentUse str.join() properly (diff)
downloadsynapse-b86d2a2d4fa6e9093bf08df88dce68e5f274c697.tar.xz
update presence times in realtime through the magic of two-way binding
Diffstat (limited to '')
-rw-r--r--webclient/room/room.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index a3514c3a91..cb9239ed56 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -25,7 +25,7 @@
                     <div class="userName">{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}<br/>{{ member.displayname ? "" : member.id.substr(member.id.indexOf(':')) }}</div>
                 </td>
                 <td class="userPresence" ng-class="member.presenceState === 'online' ? 'online' : (member.presenceState === 'unavailable' ? 'unavailable' : '')">
-                    {{ member.mtime_age | duration }}<br/>{{ member.mtime_age ? "ago" : "" }}
+                    {{ member.mtime_age + (now - member.last_updated) | duration }}<br/>{{ member.mtime_age ? "ago" : "" }}
                 </td>
         </table>
     </div>