mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Add message preview for polls
This commit is contained in:
@@ -510,6 +510,17 @@ export function getNotificationDataForMessage(
|
||||
};
|
||||
}
|
||||
|
||||
const { poll } = attributes;
|
||||
if (poll) {
|
||||
return {
|
||||
emoji: '📊',
|
||||
text: i18n('icu:message--getNotificationText--poll', {
|
||||
pollQuestion: poll.question,
|
||||
}),
|
||||
bodyRanges,
|
||||
};
|
||||
}
|
||||
|
||||
if (body) {
|
||||
return {
|
||||
text: body,
|
||||
|
||||
Reference in New Issue
Block a user