|
|
|
@ -190,7 +190,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|
|
|
|
this.updateLastMessage = _.throttle(this.bouncyUpdateLastMessage.bind(this), 1000);
|
|
|
|
|
this.throttledNotify = _.debounce(this.notify, 500, { maxWait: 1000 });
|
|
|
|
|
//start right away the function is called, and wait 1sec before calling it again
|
|
|
|
|
//this.markRead = _.debounce(this.markReadBouncy, 1000, { leading: true });
|
|
|
|
|
const markReadBouncy = _.debounce(this.markReadBouncy, 1000, { leading: true });
|
|
|
|
|
this.markRead = (newestUnreadDate: number) => {
|
|
|
|
|
const lastReadTimestamp = this.get('lastReadTimestamp');
|
|
|
|
|