mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
fix merged_members roles having everyone id
This commit is contained in:
parent
b0989ff88c
commit
ae5c71f39b
@ -235,7 +235,10 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
return [
|
||||
{
|
||||
...x,
|
||||
roles: x.roles.map((x) => x.id),
|
||||
roles: x.roles
|
||||
.map((role) => role.id)
|
||||
// filter out the @everyone role
|
||||
.filter((role) => role !== x.guild_id),
|
||||
|
||||
// add back user, which we don't fetch from db
|
||||
// TODO: For guild profiles, this may need to be changed.
|
||||
|
Loading…
Reference in New Issue
Block a user