Disable schedule message for SMS.

This commit is contained in:
Cody Henthorne
2023-01-27 12:21:46 -05:00
committed by Greyson Parrelli
parent a14fc82e83
commit 1761529ce9

View File

@@ -174,7 +174,7 @@ class SendButton(context: Context, attributeSet: AttributeSet?) : AppCompatImage
val scheduleListener = scheduledSendListener
if (availableSendTypes.size == 1) {
return if (scheduleListener?.canSchedule() == true) {
return if (scheduleListener?.canSchedule() == true && selectedSendType.transportType != MessageSendType.TransportType.SMS) {
scheduleListener.onSendScheduled()
true
} else if (!SignalStore.misc().smsExportPhase.allowSmsFeatures()) {
@@ -185,7 +185,7 @@ class SendButton(context: Context, attributeSet: AttributeSet?) : AppCompatImage
}
}
showSendTypeContextMenu(true)
showSendTypeContextMenu(selectedSendType.transportType != MessageSendType.TransportType.SMS)
return true
}