summary refs log tree commit diff
path: root/webclient/room
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-08-31 11:55:48 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-08-31 11:55:48 +0100
commit0a65a2384c2d2ecde2915baefd70f25b75305772 (patch)
tree90ab2c45e50dfc28a5c9e654865d599b532c40a2 /webclient/room
parentnasty big monolithic commit of a whole bunch of UI/UX improvements: (diff)
downloadsynapse-0a65a2384c2d2ecde2915baefd70f25b75305772.tar.xz
only show presence timings if we know them
Diffstat (limited to 'webclient/room')
-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 cfe6b99ea6..19b112d009 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -27,7 +27,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.membership == 'invite' ? 'invited' : '')">
-                    {{ member.mtime_age + (now - member.last_updated) | duration }}<br/>{{ member.mtime_age ? "ago" : "" }}
+                    <span ng-show="member.mtime_age">{{ member.mtime_age + (now - member.last_updated) | duration }}<br/>ago</span>
                 </td>
         </table>
     </div>