parent
d121effe3b
commit
e91f646920
2 changed files with 4 additions and 5 deletions
|
@ -29,11 +29,7 @@
|
|||
database: Whisper.Database,
|
||||
storeName: 'conversations',
|
||||
defaults: function() {
|
||||
var timestamp = new Date().getTime();
|
||||
return {
|
||||
unreadCount : 0,
|
||||
timestamp : timestamp,
|
||||
};
|
||||
return { unreadCount : 0 };
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
this.clearTimeout();
|
||||
var millis_now = Date.now();
|
||||
var millis = this.$el.data('timestamp');
|
||||
if (millis === "") {
|
||||
return;
|
||||
}
|
||||
if (millis >= millis_now) {
|
||||
millis = millis_now;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue