Initial Poll message receive support

This commit is contained in:
yash-signal
2025-09-18 11:06:43 -05:00
committed by GitHub
parent 976a3135e5
commit 93ae2a4c48
15 changed files with 1072 additions and 6 deletions

View File

@@ -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 ||