notifications: fix notification keying

Fixes urbit/landscape#947
This commit is contained in:
Liam Fitzgerald 2021-06-03 13:02:35 +10:00
parent c224ddf09a
commit 57fbd0b0fd
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -62,8 +62,8 @@ export function getNotificationKey(
): string {
const base = time.toString();
if ('graph' in notification.index) {
const { graph, index } = notification.index.graph;
return `${base}-${graph}-${index}`;
const { graph, index, description } = notification.index.graph;
return `${base}-${graph}-${index}-${description}`;
} else if ('group' in notification.index) {
const { group } = notification.index.group;
return `${base}-${group}`;