mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
Reactions: Don't send null 'remove' field
This commit is contained in:
2
ts/textsecure.d.ts
vendored
2
ts/textsecure.d.ts
vendored
@@ -622,7 +622,7 @@ export declare namespace DataMessageClass {
|
|||||||
|
|
||||||
class Reaction {
|
class Reaction {
|
||||||
emoji: string | null;
|
emoji: string | null;
|
||||||
remove: boolean | null;
|
remove: boolean;
|
||||||
targetAuthorE164: string | null;
|
targetAuthorE164: string | null;
|
||||||
targetAuthorUuid: string | null;
|
targetAuthorUuid: string | null;
|
||||||
targetTimestamp: ProtoBigNumberType | null;
|
targetTimestamp: ProtoBigNumberType | null;
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ class Message {
|
|||||||
if (this.reaction) {
|
if (this.reaction) {
|
||||||
proto.reaction = new window.textsecure.protobuf.DataMessage.Reaction();
|
proto.reaction = new window.textsecure.protobuf.DataMessage.Reaction();
|
||||||
proto.reaction.emoji = this.reaction.emoji || null;
|
proto.reaction.emoji = this.reaction.emoji || null;
|
||||||
proto.reaction.remove = this.reaction.remove || null;
|
proto.reaction.remove = this.reaction.remove || false;
|
||||||
proto.reaction.targetAuthorE164 = this.reaction.targetAuthorE164 || null;
|
proto.reaction.targetAuthorE164 = this.reaction.targetAuthorE164 || null;
|
||||||
proto.reaction.targetAuthorUuid = this.reaction.targetAuthorUuid || null;
|
proto.reaction.targetAuthorUuid = this.reaction.targetAuthorUuid || null;
|
||||||
proto.reaction.targetTimestamp = this.reaction.targetTimestamp || null;
|
proto.reaction.targetTimestamp = this.reaction.targetTimestamp || null;
|
||||||
|
|||||||
Reference in New Issue
Block a user