Display in a chip the number of unmatched inbox entries
This commit is contained in:
@ -21,6 +21,17 @@ export interface InboxEntryUpdate {
|
||||
}
|
||||
|
||||
export class InboxApi {
|
||||
/**
|
||||
* Get the number of unmatched entries
|
||||
*/
|
||||
static async CountUnmatched(): Promise<number> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
uri: `/inbox/count?include_attached=false`,
|
||||
method: "GET",
|
||||
})
|
||||
).data.count;
|
||||
}
|
||||
/**
|
||||
* Create a new inbox entry
|
||||
*/
|
||||
|
Reference in New Issue
Block a user