b01a861e8e
This adds a new `DiscordMessageAttachment` type which is part of `DiscordMessage`. Along with that type, there's also a new database table for `discord_message_attachments` and corresponding persistence APIs. This commit also changes how chat messages are retrieved. Here's why: `DiscordMessage` can have multiple `DiscordMessageAttachment`. A chat message can have a `DiscordMessage`. Because we're `LEFT JOIN`'ing the discord message attachments into the chat messages, there's a possibility of multiple rows per message. Hence, this commit ensures we collect queried discord message attachments on chat messages. |
||
---|---|---|
.. | ||
chat_entity.go | ||
crypto.go | ||
errors.go | ||
feature_flags.go | ||
message.go | ||
message_sender.go | ||
message_sender_test.go | ||
message_test.go | ||
pin_message.go | ||
raw_message.go | ||
raw_messages_persistence.go | ||
timesource.go |