pull/1778/head
Brice-W 4 years ago
parent 1397107dff
commit 4f98917eaf

@ -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');

Loading…
Cancel
Save