mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Initial Poll message receive support
This commit is contained in:
20
ts/textsecure/Types.d.ts
vendored
20
ts/textsecure/Types.d.ts
vendored
@@ -185,6 +185,23 @@ export type ProcessedReaction = {
|
||||
targetTimestamp?: number;
|
||||
};
|
||||
|
||||
export type ProcessedPollCreate = {
|
||||
question?: string;
|
||||
options?: Array<string>;
|
||||
allowMultiple?: boolean;
|
||||
};
|
||||
|
||||
export type ProcessedPollVote = {
|
||||
targetAuthorAci?: AciString;
|
||||
targetTimestamp?: number;
|
||||
optionIndexes?: Array<number>;
|
||||
voteCount?: number;
|
||||
};
|
||||
|
||||
export type ProcessedPollTerminate = {
|
||||
targetTimestamp?: number;
|
||||
};
|
||||
|
||||
export type ProcessedDelete = {
|
||||
targetSentTimestamp?: number;
|
||||
};
|
||||
@@ -226,6 +243,9 @@ export type ProcessedDataMessage = {
|
||||
isStory?: boolean;
|
||||
isViewOnce: boolean;
|
||||
reaction?: ProcessedReaction;
|
||||
pollCreate?: ProcessedPollCreate;
|
||||
pollVote?: ProcessedPollVote;
|
||||
pollTerminate?: ProcessedPollTerminate;
|
||||
delete?: ProcessedDelete;
|
||||
bodyRanges?: ReadonlyArray<ProcessedBodyRange>;
|
||||
groupCallUpdate?: ProcessedGroupCallUpdate;
|
||||
|
||||
Reference in New Issue
Block a user