1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Prevent spam/archive for messages in outbox

This commit is contained in:
M66B 2018-08-02 20:49:11 +00:00
parent 7feac257d1
commit bb63ef2cfa

View file

@ -179,6 +179,8 @@ public class FragmentMessage extends Fragment {
: R.drawable.baseline_visibility_24);
actionSeen.setTitle(message.ui_seen ? R.string.title_unseen : R.string.title_seen);
bottom_navigation.getMenu().findItem(R.id.action_spam).setEnabled(message.account != null);
bottom_navigation.getMenu().findItem(R.id.action_archive).setEnabled(message.account != null);
tvBody.setText(message.body == null
? null
: Html.fromHtml(HtmlHelper.sanitize(getContext(), message.body, false)));