Skip to content

Commit 24af2da

Browse files
committed
fix: remove usused onReadMessage method
1 parent c617976 commit 24af2da

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

ts/models/conversation.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -471,26 +471,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
471471
return true;
472472
}
473473

474-
public async onReadMessage(message: MessageModel, readAt: number) {
475-
// We mark as read everything older than this message - to clean up old stuff
476-
// still marked unread in the database. If the user generally doesn't read in
477-
// the desktop app, so the desktop app only gets read syncs, we can very
478-
// easily end up with messages never marked as read (our previous early read
479-
// sync handling, read syncs never sent because app was offline)
480-
481-
// We queue it because we often get a whole lot of read syncs at once, and
482-
// their markRead calls could very easily overlap given the async pull from DB.
483-
484-
// Lastly, we don't send read syncs for any message marked read due to a read
485-
// sync. That's a notification explosion we don't need.
486-
return this.queueJob(() =>
487-
this.markReadBouncy(message.get('received_at') as any, {
488-
sendReadReceipts: false,
489-
readAt,
490-
})
491-
);
492-
}
493-
494474
public async getUnreadCount() {
495475
const unreadCount = await Data.getUnreadCountByConversation(this.id);
496476

0 commit comments

Comments
 (0)