diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-08-29 17:21:57 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-08-29 17:22:48 +0100 |
commit | b86d2a2d4fa6e9093bf08df88dce68e5f274c697 (patch) | |
tree | f6ac8fd7492cba165f3bc89f759f1010abb8ccfb /webclient/room/room.html | |
parent | Use str.join() properly (diff) | |
download | synapse-b86d2a2d4fa6e9093bf08df88dce68e5f274c697.tar.xz |
update presence times in realtime through the magic of two-way binding
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room.html | 2 |
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> |