Hide Resend if no error

This commit is contained in:
andrew 2023-07-10 00:35:13 +09:30
parent 0824713ac5
commit b26c98af68

View File

@ -130,7 +130,7 @@ class MessageDetailActivity : PassphraseRequiredActionBarActivity() {
threadDb = threadDb,
messageDetails = details,
onReply = { setResultAndFinish(ON_REPLY) },
onResend = { setResultAndFinish(ON_RESEND) },
onResend = details.error?.let { { setResultAndFinish(ON_RESEND) } },
onDelete = { setResultAndFinish(ON_DELETE) },
onClickImage = { slide ->
// only open to downloaded images