mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Enable sending of polls.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user