mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Add pinned message chat event
This commit is contained in:
@@ -51,6 +51,7 @@ import {
|
||||
isUnsupportedMessage,
|
||||
isConversationMerge,
|
||||
isMessageRequestResponse,
|
||||
isPinnedMessageNotification,
|
||||
} from '../state/selectors/message.preload.js';
|
||||
import { getAuthor } from '../messages/sources.preload.js';
|
||||
import {
|
||||
@@ -510,6 +511,10 @@ export function getNotificationDataForMessage(
|
||||
};
|
||||
}
|
||||
|
||||
if (isPinnedMessageNotification(attributes)) {
|
||||
throw new Error('unimplemented');
|
||||
}
|
||||
|
||||
const { poll } = attributes;
|
||||
if (poll) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user