Rocket.Chat.Apps-engine
Rocket.Chat.Apps-engine copied to clipboard
Access attachment ID in message quote
Quotes in the messages come as attachments, but each message that is being quoted can contain attachment itself.
In the following dump we see that quote as attachment has data about it's own attachments (attachments: [Array] ) by they are not mapped in the interface.
{
text: '',
timestampLink: 'http://localhost:3000/direct/qfB4h6dkwZ7dCYb5erocket.cat?msg=geNo8qkavKrT2vEr6',
author: { name: 'dev', link: undefined, icon: '/avatar/dev' },
title: {
value: undefined,
link: undefined,
displayDownloadLink: undefined
},
timestamp: 2021-04-30T15:00:52.743Z,
_unmappedProperties_: { translations: undefined, attachments: [Array] }
}
It is not possible to access those internal attachments through IMessageAttachment interface.