File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -471,26 +471,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
471
471
return true ;
472
472
}
473
473
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
-
494
474
public async getUnreadCount ( ) {
495
475
const unreadCount = await Data . getUnreadCountByConversation ( this . id ) ;
496
476
You can’t perform that action at this time.
0 commit comments