feat(desktop): bundled renderer, modules and instance accounts (#3254)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-07 16:48:07 +02:00
1 parent c748c8af4e
commit 7c5fa2180a
1275 files changed
+215074 -81246

No files matched your search

@@ -11,6 +11,7 @@ import SavedMessages from '@app/features/messaging/state/SavedMessages';
import SelectedChannel from '@app/features/navigation/state/SelectedChannel';
import MentionFeed from '@app/features/notification/state/MentionFeed';
import Permission from '@app/features/permissions/state/Permission';
import {currentInstanceTarget} from '@app/features/platform/transport/InstanceHTTP';
import ReadStates from '@app/features/read_state/state/ReadStates';
import QuickSwitcher from '@app/features/search/state/QuickSwitcher';
import Slowmode from '@app/features/slowmode/state/Slowmode';
@@ -20,7 +21,7 @@ import MediaEngine from '@app/features/voice/engine/MediaEngineFacade';
import Webhooks from '@app/features/webhook/state/Webhooks';
import type {Channel} from '@fluxer/schema/src/domains/channel/ChannelSchemas';
interface ChannelDeletePayload {
export interface ChannelDeletePayload {
id: string;
type: number;
guild_id?: string;
@@ -37,7 +38,7 @@ export function cleanupChannelLocalState(channel: Channel): void {
Channels.handleChannelDelete({channel});
Permission.handleChannelDelete(channel.id, guildId);
GuildReadState.handleChannelDelete(channel.id);
Invites.handleChannelDelete(channel.id);
Invites.handleChannelDelete(channel.id, currentInstanceTarget());
Webhooks.handleChannelDelete(channel.id);
ReadStates.handleChannelDelete({channel});
SelectedChannel.handleChannelDelete(channel);
@@ -3,7 +3,7 @@
import type {GatewayHandlerContext} from '@app/features/gateway/events/EventRouter';
import ReadStates from '@app/features/read_state/state/ReadStates';
interface ChannelPinsAckPayload {
export interface ChannelPinsAckPayload {
channel_id: string;
last_pin_timestamp?: string | null;
}
@@ -4,7 +4,7 @@ import ChannelPins from '@app/features/channel/state/ChannelPins';
import type {GatewayHandlerContext} from '@app/features/gateway/events/EventRouter';
import ReadStates from '@app/features/read_state/state/ReadStates';
interface ChannelPinsUpdatePayload {
export interface ChannelPinsUpdatePayload {
channel_id: string;
last_pin_timestamp?: string | null;
}
@@ -5,12 +5,12 @@ import type {GatewayHandlerContext} from '@app/features/gateway/events/EventRout
import QuickSwitcher from '@app/features/search/state/QuickSwitcher';
import type {UserPartial} from '@fluxer/schema/src/domains/user/UserResponseSchemas';
interface ChannelRecipientPayload {
export interface ChannelRecipientAddPayload {
channel_id: string;
user: UserPartial;
}
export function handleChannelRecipientAdd(data: ChannelRecipientPayload, _context: GatewayHandlerContext): void {
export function handleChannelRecipientAdd(data: ChannelRecipientAddPayload, _context: GatewayHandlerContext): void {
Channels.handleChannelRecipientAdd({
channelId: data.channel_id,
user: data.user,
@@ -5,12 +5,15 @@ import type {GatewayHandlerContext} from '@app/features/gateway/events/EventRout
import QuickSwitcher from '@app/features/search/state/QuickSwitcher';
import type {UserPartial} from '@fluxer/schema/src/domains/user/UserResponseSchemas';
interface ChannelRecipientPayload {
export interface ChannelRecipientRemovePayload {
channel_id: string;
user: UserPartial;
}
export function handleChannelRecipientRemove(data: ChannelRecipientPayload, _context: GatewayHandlerContext): void {
export function handleChannelRecipientRemove(
data: ChannelRecipientRemovePayload,
_context: GatewayHandlerContext,
): void {
Channels.handleChannelRecipientRemove({
channelId: data.channel_id,
user: data.user,
@@ -8,7 +8,7 @@ import QuickSwitcher from '@app/features/search/state/QuickSwitcher';
import MediaEngine from '@app/features/voice/engine/MediaEngineFacade';
import type {Channel} from '@fluxer/schema/src/domains/channel/ChannelSchemas';
type ChannelUpdatePayload = Partial<Channel> & {
export type ChannelUpdatePayload = Partial<Channel> & {
id: string;
type: number;
};
@@ -8,13 +8,13 @@ import QuickSwitcher from '@app/features/search/state/QuickSwitcher';
import MediaEngine from '@app/features/voice/engine/MediaEngineFacade';
import type {Channel} from '@fluxer/schema/src/domains/channel/ChannelSchemas';
type ChannelUpdatePayload = Partial<Channel> & {
export type ChannelBulkUpdatePayload = Partial<Channel> & {
id: string;
type: number;
};
interface ChannelUpdateBulkPayload {
channels: Array<ChannelUpdatePayload>;
export interface ChannelUpdateBulkPayload {
channels: Array<ChannelBulkUpdatePayload>;
}
export function handleChannelUpdateBulk(data: ChannelUpdateBulkPayload, _context: GatewayHandlerContext): void {