mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
[Fix] Client bug (#623)
If you don't delete this property for some reasons after you send a message in a guild, your roles will be removed (client sided) for everyone, this fixes it.
This commit is contained in:
parent
ba98f020cb
commit
760cdeda92
@ -220,6 +220,9 @@ router.post(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Fix for the client bug
|
||||||
|
delete message.member
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
message.save(),
|
message.save(),
|
||||||
emitEvent({ event: "MESSAGE_CREATE", channel_id: channel_id, data: message } as MessageCreateEvent),
|
emitEvent({ event: "MESSAGE_CREATE", channel_id: channel_id, data: message } as MessageCreateEvent),
|
||||||
|
Loading…
Reference in New Issue
Block a user