mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-23 14:45:24 +00:00
send the real index
This commit is contained in:
@@ -146,8 +146,8 @@ router.patch(
|
||||
where: { id: opt.id },
|
||||
});
|
||||
|
||||
channel.position = opt.position as number;
|
||||
notMentioned.splice(opt.position as number, 0, channel.id);
|
||||
channel.position = notMentioned.findIndex((_) => _ === channel.id);
|
||||
|
||||
await emitEvent({
|
||||
event: "CHANNEL_UPDATE",
|
||||
|
||||
Reference in New Issue
Block a user