Signal and middleware updates

This commit is contained in:
Darren Clarke 2024-09-05 16:19:58 +02:00
parent 31faf22fd5
commit 27300b2530
3 changed files with 4 additions and 5 deletions

View file

@ -48,6 +48,9 @@ const processMessage = async ({
const { envelope } = msg;
console.log(envelope);
const { source, sourceUuid, dataMessage } = envelope;
if (!dataMessage) return [];
const { attachments } = dataMessage;
const rawTimestamp = dataMessage?.timestamp;
const timestamp = new Date(rawTimestamp);