Display relative timestamps in conversation list

This mimicks Signal-Android's relative timestamps.
Previously, only the date was displayed.

Fixes #284
This commit is contained in:
Lorenz Hübschle-Schneider 2015-12-20 13:34:35 +01:00 committed by lilia
parent 05f4b559fd
commit e876d8f6ed
6 changed files with 142 additions and 18 deletions

View file

@ -143,7 +143,7 @@
<script type='text/x-tmpl-mustache' id='conversation-preview'>
{{> avatar }}
<div class='contact-details'>
<span class='last-timestamp'> {{ last_message_timestamp }} </span>
<span class='last-timestamp' data-timestamp={{ last_message_timestamp }}> </span>
{{> contact_name_and_number }}
{{ #unreadCount }}
<span class='unread-count'>{{ unreadCount }}</span>