mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Initial Poll message receive support
This commit is contained in:
@@ -30,6 +30,7 @@ export function isMessageEmpty(attributes: MessageAttributesType): boolean {
|
||||
const hasAttachment = (attributes.attachments || []).length > 0;
|
||||
const hasEmbeddedContact = (attributes.contact || []).length > 0;
|
||||
const isSticker = Boolean(attributes.sticker);
|
||||
const isPoll = Boolean(attributes.poll);
|
||||
|
||||
// Rendered sync messages
|
||||
const isCallHistoryValue = isCallHistory(attributes);
|
||||
@@ -69,6 +70,7 @@ export function isMessageEmpty(attributes: MessageAttributesType): boolean {
|
||||
hasAttachment ||
|
||||
hasEmbeddedContact ||
|
||||
isSticker ||
|
||||
isPoll ||
|
||||
isPayment ||
|
||||
// Rendered sync messages
|
||||
isCallHistoryValue ||
|
||||
|
||||
Reference in New Issue
Block a user