Fix typo that requests SMS permission for media/group message

Fixes #7271
This commit is contained in:
Moxie Marlinspike 2017-12-13 10:29:19 -08:00
parent a8040b00cf
commit f72e35bf42

View File

@ -1669,7 +1669,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
Permissions.with(this)
.request(Manifest.permission.SEND_SMS)
.ifNecessary(isSecureText || forceSms)
.ifNecessary(!isSecureText || forceSms)
.withPermanentDenialDialog(getString(R.string.ConversationActivity_signal_needs_sms_permission_in_order_to_send_an_sms))
.onAllGranted(() -> {
attachmentManager.clear(glideRequests, false);