feat(voice): add opt-in peer-to-peer calls and country rollouts (#3367)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 15:45:17 +02:00
1 parent e5a568acca
commit bef5e33eec
215 files changed
+15840 -2693

No files matched your search

@@ -149,6 +149,7 @@ export class ChannelDataService {
requestCache,
auditLogReason,
typeConversion,
countryCode,
}: {
userId: UserID;
viewer: ThreadViewer;
@@ -158,6 +159,7 @@ export class ChannelDataService {
requestCache: RequestCache;
auditLogReason: string | null;
typeConversion?: ChannelTypeConversion | null;
countryCode?: string | null;
}): Promise<Channel> {
const authChannel = await this.auth.getChannelAuthenticated({userId, channelId, viewer, skipNsfwValidation: true});
const {channel} = authChannel;
@@ -227,6 +229,9 @@ export class ChannelDataService {
if (guildChannelData.rtc_region !== undefined) {
channelUpdateData.rtc_region = guildChannelData.rtc_region ?? null;
}
if (guildChannelData.rtc_p2p !== undefined) {
channelUpdateData.rtc_p2p = guildChannelData.rtc_p2p;
}
if (guildChannelData.icon !== undefined) {
channelUpdateData.icon = guildChannelData.icon ?? null;
}
@@ -246,6 +251,7 @@ export class ChannelDataService {
requestCache,
auditLogReason,
typeConversion,
countryCode,
});
}
}