1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 09:17:58 +00:00

Simplification

This commit is contained in:
M66B 2019-11-17 11:29:35 +01:00
parent b854cbe8d3
commit c60cccad2c
2 changed files with 1 additions and 4 deletions

View file

@ -441,9 +441,6 @@ public interface DaoMessage {
@Query("UPDATE message SET received = :sent, sent = :sent WHERE id = :id")
int setMessageSent(long id, Long sent);
@Query("UPDATE message SET error = :warning WHERE id = :id")
int setMessageWarning(long id, String warning);
@Query("UPDATE message SET error = :error WHERE id = :id")
int setMessageError(long id, String error);

View file

@ -4175,7 +4175,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
else if (sresult == RESULT_VALID_KEY_CONFIRMED)
Snackbar.make(view, R.string.title_signature_valid, Snackbar.LENGTH_LONG).show();
else
db.message().setMessageWarning(id, getString(R.string.title_signature_invalid));
Snackbar.make(view, R.string.title_signature_invalid, Snackbar.LENGTH_LONG).show();
break;