diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index 07cbe091..6821fabc 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -298,6 +298,7 @@ export interface DmLastMessagePreview { export interface DmChannel { id: string; + federatedId?: string | null; ownerId?: string | null; createdAt: number; members: User[]; @@ -806,7 +807,8 @@ export interface FederationRelayEvent { | 'friend_add' | 'friend_remove' | 'file_rejected' | 'dm_call_start' | 'dm_call_accept' | 'dm_call_reject' | 'dm_call_end' | 'dm_typing_start' | 'dm_typing_stop' - | 'profile_update'; + | 'profile_update' + | 'read_state_update'; contextType?: 'dm' | 'friend' | 'profile'; dmChannelId?: string; messageId: string; @@ -843,6 +845,10 @@ export interface FederationRelayEvent { username: string; }; profileUpdate?: FederationProfileUpdatePayload; + readState?: { + user: { homeUserId: string; homeInstance: string }; + messageRef: { sourceInstance: string; sourceMessageId: string }; + }; } export interface FederationCallPayload {