Rocket.Chat.Apps-engine icon indicating copy to clipboard operation
Rocket.Chat.Apps-engine copied to clipboard

Access attachment ID in message quote

Open inaferando opened this issue 4 years ago • 0 comments

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.

inaferando avatar Apr 30 '21 15:04 inaferando