Skip to content

Commit

Permalink
Add to read-receipt iface
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jun 20, 2023
1 parent 0ad3336 commit 123dcf1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/models/read-receipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,13 @@ export abstract class ReadReceipt<
// We don't know if the user has read it, so assume not.
return false;
}

/**
* Returns the most recent unthreaded receipt for a given user
* @param userId - the MxID of the User
* @returns an unthreaded Receipt. Can be undefined if receipts have been disabled
* or a user chooses to use private read receipts (or we have simply not received
* a receipt from this user yet).
*/
public abstract getLastUnthreadedReceiptFor(userId: string): Receipt | undefined;
}

0 comments on commit 123dcf1

Please sign in to comment.