Changeset View
Changeset View
Standalone View
Standalone View
lib/types/message-types.js
Show First 20 Lines • Show All 557 Lines • ▼ Show 20 Lines | |||||
export type SendReactionMessageRequest = { | export type SendReactionMessageRequest = { | ||||
+threadID: string, | +threadID: string, | ||||
+localID?: string, | +localID?: string, | ||||
+targetMessageID: string, | +targetMessageID: string, | ||||
+reaction: string, | +reaction: string, | ||||
+action: 'add_reaction' | 'remove_reaction', | +action: 'add_reaction' | 'remove_reaction', | ||||
}; | }; | ||||
export type SendEditMessageRequest = { | |||||
+targetMessageID: string, | |||||
+text: string, | |||||
}; | |||||
export type SendEditMessageResponse = { | |||||
+newMessageInfos: $ReadOnlyArray<RawMessageInfo>, | |||||
}; | |||||
// Used for the message info included in log-in type actions | // Used for the message info included in log-in type actions | ||||
export type GenericMessagesResult = { | export type GenericMessagesResult = { | ||||
+messageInfos: RawMessageInfo[], | +messageInfos: RawMessageInfo[], | ||||
+truncationStatus: MessageTruncationStatuses, | +truncationStatus: MessageTruncationStatuses, | ||||
+watchedIDsAtRequestTime: $ReadOnlyArray<string>, | +watchedIDsAtRequestTime: $ReadOnlyArray<string>, | ||||
+currentAsOf: number, | +currentAsOf: number, | ||||
}; | }; | ||||
Show All 12 Lines |