Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(api): keep stickers on messages sent to personal notes (#2727)

Hampus57d08cd091e4
diff --git a/fluxer_api/src/api/channel/services/message/MessageSendService.ts b/fluxer_api/src/api/channel/services/message/MessageSendService.ts
index d7b204f2f..a0669bd1c 100644
--- a/fluxer_api/src/api/channel/services/message/MessageSendService.ts
+++ b/fluxer_api/src/api/channel/services/message/MessageSendService.ts
@@ -1355,6 +1355,7 @@ export class MessageSendService {
attachments: attachmentsToProcess,
attachmentUploadUserId: user.id,
processedAttachments: favoriteMemeAttachment ? [favoriteMemeAttachment] : undefined,
+ stickerIds: data.sticker_ids ? data.sticker_ids.flatMap((stickerId) => createStickerID(stickerId)) : undefined,
messageReference,
messageSnapshots,
guildId: null,