RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access attachment ID in message quote

inaferando opened this issue · 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.