feat: Implement core Discord clone functionality including Convex backend services for authentication, channels, messages, roles, and voice state, alongside new Electron frontend components for chat, voice, server settings, and user interface.
All checks were successful
Build and Release / build-and-release (push) Successful in 14m19s
All checks were successful
Build and Release / build-and-release (push) Successful in 14m19s
This commit is contained in:
@@ -2,6 +2,7 @@ import { query, mutation } from "./_generated/server";
|
||||
import { v } from "convex/values";
|
||||
import { GenericMutationCtx } from "convex/server";
|
||||
import { DataModel, Id } from "./_generated/dataModel";
|
||||
import { internal } from "./_generated/api";
|
||||
|
||||
type TableWithChannelIndex =
|
||||
| "channelKeys"
|
||||
@@ -234,6 +235,9 @@ export const remove = mutation({
|
||||
await deleteByChannel(ctx, "voiceStates", args.id);
|
||||
await deleteByChannel(ctx, "channelReadState", args.id);
|
||||
|
||||
// Clear AFK setting if this channel was the AFK channel
|
||||
await ctx.runMutation(internal.serverSettings.clearAfkChannel, { channelId: args.id });
|
||||
|
||||
await ctx.db.delete(args.id);
|
||||
|
||||
return { success: true };
|
||||
|
||||
Reference in New Issue
Block a user