feat: add federatedId to DmChannel type, read_state_update to relay events
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user