Notification improvements
This commit is contained in:
parent
04a4e6e5ff
commit
d2ef82686d
16 changed files with 408 additions and 410 deletions
15
ts/window.d.ts
vendored
15
ts/window.d.ts
vendored
|
@ -176,6 +176,7 @@ declare global {
|
|||
baseAttachmentsPath: string;
|
||||
baseStickersPath: string;
|
||||
baseTempPath: string;
|
||||
drawAttention: () => void;
|
||||
enterKeyboardMode: () => void;
|
||||
enterMouseMode: () => void;
|
||||
getAccountManager: () => AccountManager;
|
||||
|
@ -591,20 +592,6 @@ export type WhisperType = {
|
|||
) => void;
|
||||
};
|
||||
|
||||
Notifications: {
|
||||
isEnabled: boolean;
|
||||
removeBy: (filter: Partial<unknown>) => void;
|
||||
add: (notification: unknown) => void;
|
||||
clear: () => void;
|
||||
disable: () => void;
|
||||
enable: () => void;
|
||||
fastClear: () => void;
|
||||
on: (
|
||||
event: string,
|
||||
callback: (id: string, messageId: string) => void
|
||||
) => void;
|
||||
};
|
||||
|
||||
ExpiringMessagesListener: {
|
||||
init: (events: Backbone.Events) => void;
|
||||
update: () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue