From 677404e82d67b39a3613eec9d28d7041347124f4 Mon Sep 17 00:00:00 2001 From: yash-signal Date: Tue, 11 Nov 2025 16:08:37 -0600 Subject: [PATCH] Send and receive polls with latest protocol version --- protos/SignalService.proto | 3 ++- ts/test-electron/backup/non_bubble_test.preload.ts | 5 +++-- ts/textsecure/SendMessage.preload.ts | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/protos/SignalService.proto b/protos/SignalService.proto index 92ed3ac50e..f180e62255 100644 --- a/protos/SignalService.proto +++ b/protos/SignalService.proto @@ -365,7 +365,8 @@ message DataMessage { CDN_SELECTOR_ATTACHMENTS = 5; MENTIONS = 6; PAYMENTS = 7; - CURRENT = 7; + POLLS = 8; + CURRENT = 8; } message GiftBadge { diff --git a/ts/test-electron/backup/non_bubble_test.preload.ts b/ts/test-electron/backup/non_bubble_test.preload.ts index 3fecbb577f..f5b1e5e2c1 100644 --- a/ts/test-electron/backup/non_bubble_test.preload.ts +++ b/ts/test-electron/backup/non_bubble_test.preload.ts @@ -566,8 +566,9 @@ describe('backup/non-bubble messages', () => { timestamp: 1, readStatus: ReadStatus.Read, seenStatus: SeenStatus.Seen, - supportedVersionAtReceive: 5, - requiredProtocolVersion: 6, + supportedVersionAtReceive: + Proto.DataMessage.ProtocolVersion.CURRENT - 2, + requiredProtocolVersion: Proto.DataMessage.ProtocolVersion.CURRENT - 1, }, ]); }); diff --git a/ts/textsecure/SendMessage.preload.ts b/ts/textsecure/SendMessage.preload.ts index c354caf0fc..9eabd2f9a9 100644 --- a/ts/textsecure/SendMessage.preload.ts +++ b/ts/textsecure/SendMessage.preload.ts @@ -679,6 +679,7 @@ class Message { create.allowMultiple = Boolean(this.pollCreate.allowMultiple); create.options = this.pollCreate.options.slice(); proto.pollCreate = create; + proto.requiredProtocolVersion = Proto.DataMessage.ProtocolVersion.POLLS; } this.dataMessage = proto;