Don't set or read reaction target phone number

This commit is contained in:
Evan Hahn 2021-03-31 14:48:10 -05:00 committed by Josh Perez
parent 1a9c6b9385
commit 63ece2e9b4
5 changed files with 2 additions and 13 deletions

View file

@ -2601,7 +2601,6 @@ export async function startApp(): Promise<void> {
const reactionModel = window.Whisper.Reactions.add({
emoji: reaction.emoji,
remove: reaction.remove,
targetAuthorE164: reaction.targetAuthorE164,
targetAuthorUuid: reaction.targetAuthorUuid,
targetTimestamp: reaction.targetTimestamp,
timestamp: Date.now(),
@ -2892,7 +2891,6 @@ export async function startApp(): Promise<void> {
const reactionModel = window.Whisper.Reactions.add({
emoji: reaction.emoji,
remove: reaction.remove,
targetAuthorE164: reaction.targetAuthorE164,
targetAuthorUuid: reaction.targetAuthorUuid,
targetTimestamp: reaction.targetTimestamp,
timestamp: Date.now(),

1
ts/textsecure.d.ts vendored
View file

@ -736,7 +736,6 @@ export declare namespace DataMessageClass {
class Reaction {
emoji: string | null;
remove: boolean;
targetAuthorE164: string | null;
targetAuthorUuid: string | null;
targetTimestamp: ProtoBigNumberType | null;
}

View file

@ -172,7 +172,6 @@ class Message {
reaction?: {
emoji?: string;
remove?: boolean;
targetAuthorE164?: string;
targetAuthorUuid?: string;
targetTimestamp?: number;
};
@ -315,7 +314,6 @@ class Message {
proto.reaction = new window.textsecure.protobuf.DataMessage.Reaction();
proto.reaction.emoji = this.reaction.emoji || null;
proto.reaction.remove = this.reaction.remove || false;
proto.reaction.targetAuthorE164 = this.reaction.targetAuthorE164 || null;
proto.reaction.targetAuthorUuid = this.reaction.targetAuthorUuid || null;
proto.reaction.targetTimestamp = this.reaction.targetTimestamp || null;
}