fix scrolling issues

This commit is contained in:
2026-04-06 12:58:07 -04:00
parent 3256b81b42
commit 85ccd506cf
13 changed files with 82 additions and 54 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { schema, t, table, SenderError, type ReducerCtx } from "spacetimedb/server";
import { schema, t, table, SenderError } from "spacetimedb/server";
const channel_kind = t.enum("ChannelKind", { Text: t.unit(), Voice: t.unit() });
@@ -589,7 +589,7 @@ export const delete_server = spacetimedb.reducer(
(ctx, { serverId }) => {
const s = ctx.db.server.id.find(serverId);
if (!s) throw new SenderError("Server not found");
/* owner check temporarily disabled */
/* if (s.owner?.toHexString() !== ctx.sender.toHexString()) {
throw new SenderError("Only the server owner can delete the server");