feat: bans system, voice moderation, and federated space settings fixes
Add ban/unban functionality with BansPanel in space settings, voice moderation context menu (mute/deafen/disconnect), and fix federated space settings panels to use origin-aware API client. Show domain indicators for federated members in MembersPanel.
This commit is contained in:
@@ -155,3 +155,14 @@ export function isDmMember(dmChannelId: string, userId: string): boolean {
|
||||
.get();
|
||||
return member !== undefined;
|
||||
}
|
||||
|
||||
export function isBanned(spaceId: string, userId: string): boolean {
|
||||
const db = getDb();
|
||||
const ban = db.select().from(schema.bans)
|
||||
.where(and(
|
||||
eq(schema.bans.spaceId, spaceId),
|
||||
eq(schema.bans.userId, userId),
|
||||
))
|
||||
.get();
|
||||
return ban !== undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user