Skip to content

Commit

Permalink
Mark many of SendMessage's arguments as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Jul 29, 2021
1 parent 93f60ee commit 8775c71
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 107 deletions.
4 changes: 2 additions & 2 deletions ts/textsecure/OutgoingMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class OutgoingMessage {

timestamp: number;

identifiers: Array<string>;
identifiers: ReadonlyArray<string>;

message: Proto.Content | PlaintextContent;

Expand Down Expand Up @@ -156,7 +156,7 @@ export default class OutgoingMessage {
callback: (result: CallbackResultType) => void;
contentHint: number;
groupId: string | undefined;
identifiers: Array<string>;
identifiers: ReadonlyArray<string>;
message: Proto.Content | Proto.DataMessage | PlaintextContent;
options?: OutgoingMessageOptionsType;
sendLogCallback?: SendLogCallbackType;
Expand Down

0 comments on commit 8775c71

Please sign in to comment.