1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-19 17:21:35 +02:00

messageupdate: fix member not being correct format

This commit is contained in:
Puyodead1 2023-12-05 13:22:04 -05:00
parent b7c4889c63
commit e54879e1fe
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -109,7 +109,11 @@ router.patch(
await emitEvent({
event: "MESSAGE_UPDATE",
channel_id,
data: { ...new_message.toJSON(), nonce: undefined },
data: {
...new_message.toJSON(),
nonce: undefined,
member: new_message.member?.toPublicMember(),
},
} as MessageUpdateEvent),
]);
@ -121,6 +125,7 @@ router.patch(
id: new_message.id,
type: new_message.type,
channel_id: new_message.channel_id,
member: new_message.member?.toPublicMember(),
author: new_message.author?.toPublicUser(),
attachments: new_message.attachments,
embeds: new_message.embeds,