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 {
|
export interface DmChannel {
|
||||||
id: string;
|
id: string;
|
||||||
|
federatedId?: string | null;
|
||||||
ownerId?: string | null;
|
ownerId?: string | null;
|
||||||
createdAt: number;
|
createdAt: number;
|
||||||
members: User[];
|
members: User[];
|
||||||
@@ -806,7 +807,8 @@ export interface FederationRelayEvent {
|
|||||||
| 'friend_add' | 'friend_remove' | 'file_rejected'
|
| 'friend_add' | 'friend_remove' | 'file_rejected'
|
||||||
| 'dm_call_start' | 'dm_call_accept' | 'dm_call_reject' | 'dm_call_end'
|
| 'dm_call_start' | 'dm_call_accept' | 'dm_call_reject' | 'dm_call_end'
|
||||||
| 'dm_typing_start' | 'dm_typing_stop'
|
| 'dm_typing_start' | 'dm_typing_stop'
|
||||||
| 'profile_update';
|
| 'profile_update'
|
||||||
|
| 'read_state_update';
|
||||||
contextType?: 'dm' | 'friend' | 'profile';
|
contextType?: 'dm' | 'friend' | 'profile';
|
||||||
dmChannelId?: string;
|
dmChannelId?: string;
|
||||||
messageId: string;
|
messageId: string;
|
||||||
@@ -843,6 +845,10 @@ export interface FederationRelayEvent {
|
|||||||
username: string;
|
username: string;
|
||||||
};
|
};
|
||||||
profileUpdate?: FederationProfileUpdatePayload;
|
profileUpdate?: FederationProfileUpdatePayload;
|
||||||
|
readState?: {
|
||||||
|
user: { homeUserId: string; homeInstance: string };
|
||||||
|
messageRef: { sourceInstance: string; sourceMessageId: string };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FederationCallPayload {
|
export interface FederationCallPayload {
|
||||||
|
|||||||
Reference in New Issue
Block a user