feat: finalize msteams polls + outbound parity

This commit is contained in:
Peter Steinberger
2026-01-09 09:56:36 +01:00
parent a2bba7ef51
commit e55358c65d
22 changed files with 913 additions and 81 deletions

View File

@@ -8,6 +8,7 @@ export type OutboundDeliveryJson = {
mediaUrl: string | null;
chatId?: string;
channelId?: string;
conversationId?: string;
timestamp?: number;
toJid?: string;
};
@@ -16,6 +17,7 @@ type OutboundDeliveryMeta = {
messageId?: string;
chatId?: string;
channelId?: string;
conversationId?: string;
timestamp?: number;
toJid?: string;
};
@@ -36,6 +38,8 @@ export function formatOutboundDeliverySummary(
if ("chatId" in result) return `${base} (chat ${result.chatId})`;
if ("channelId" in result) return `${base} (channel ${result.channelId})`;
if ("conversationId" in result)
return `${base} (conversation ${result.conversationId})`;
return base;
}
@@ -62,6 +66,13 @@ export function buildOutboundDeliveryJson(params: {
if (result && "channelId" in result && result.channelId !== undefined) {
payload.channelId = result.channelId;
}
if (
result &&
"conversationId" in result &&
result.conversationId !== undefined
) {
payload.conversationId = result.conversationId;
}
if (result && "timestamp" in result && result.timestamp !== undefined) {
payload.timestamp = result.timestamp;
}