mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 02:18:15 +01:00
Add pinned message notifications
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user