Add pinned message notifications

This commit is contained in:
Jamie
2025-12-16 07:47:46 -08:00
committed by GitHub
parent 5ec3f763cd
commit 0a12e1ec17
6 changed files with 59 additions and 18 deletions

View File

@@ -93,6 +93,13 @@ export async function onPinnedMessageAdd(
}
}
if (result.change?.inserted) {
await targetConversation.addNotification('pinned-message-notification', {
pinnedMessageId: targetMessage.id,
sourceServiceId: props.pinnedByAci,
});
}
window.reduxActions.pinnedMessages.onPinnedMessagesChanged(
targetConversation.id
);