Enable sending of polls.

This commit is contained in:
Michelle Tang
2025-11-12 11:44:03 -05:00
committed by Alex Hart
parent 7e4085b9a9
commit 1a4eabd074
2 changed files with 2 additions and 1 deletions

View File

@@ -1176,7 +1176,7 @@ object RemoteConfig {
@JvmStatic
@get:JvmName("polls")
val polls: Boolean by remoteBoolean(
key = "android.polls",
key = "android.polls.2",
defaultValue = false,
hotSwappable = true
)

View File

@@ -1259,6 +1259,7 @@ public class SignalServiceMessageSender {
.question(pollCreate.getQuestion())
.allowMultiple(pollCreate.getAllowMultiple())
.options(pollCreate.getOptions()).build());
builder.requiredProtocolVersion(Math.max(DataMessage.ProtocolVersion.POLLS.getValue(), builder.requiredProtocolVersion));
}
if (message.getPollVote().isPresent()) {