Skip to content

Commit 5610c75

Browse files
committed
feat: stabilize notification order during notification interactions
Signed-off-by: Adam Setch <[email protected]>
1 parent 73b412d commit 5610c75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/renderer/utils/notifications/notifications.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ export async function enrichNotification(
146146
};
147147
}
148148

149+
/**
150+
* Assign an order property to each notification to stabilize how they are displayed
151+
* during notification interaction events (mark as read, mark as done, etc.)
152+
*
153+
* @param notifications
154+
* @param settings
155+
*/
149156
export function stabilizeNotificationsOrder(
150157
notifications: AccountNotifications[],
151158
settings: SettingsState,

0 commit comments

Comments
 (0)