1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-09 20:22:47 +01:00

Revert "fix merged_members roles having everyone id"

This reverts commit ae5c71f39b.
This commit is contained in:
Puyodead1 2023-12-23 22:55:37 -05:00
parent ae5c71f39b
commit 105b3de19e
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -235,10 +235,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
return [
{
...x,
roles: x.roles
.map((role) => role.id)
// filter out the @everyone role
.filter((role) => role !== x.guild_id),
roles: x.roles.map((x) => x.id),
// add back user, which we don't fetch from db
// TODO: For guild profiles, this may need to be changed.