[MM-57348] Change result to status as a better descriptor of the notification status (#3005)

This commit is contained in:
Devin Binnie
2024-04-12 09:06:33 -04:00
committed by GitHub
parent 125ff06481
commit 1eda09ae25
7 changed files with 16 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ export type DesktopAPI = {
onLogout: () => void;
// Unreads/mentions/notifications
sendNotification: (title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) => Promise<{result: string; reason?: string; data?: string}>;
sendNotification: (title: string, body: string, channelId: string, teamId: string, url: string, silent: boolean, soundName: string) => Promise<{status: string; reason?: string; data?: string}>;
onNotificationClicked: (listener: (channelId: string, teamId: string, url: string) => void) => () => void;
setUnreadsAndMentions: (isUnread: boolean, mentionCount: number) => void;