Store sent messages encrypted

pull/194/merge
M66B 3 years ago
parent 5fc3cf21ae
commit de158337f9

@ -788,6 +788,11 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
// Show in sent folder // Show in sent folder
if (sid != null) { if (sid != null) {
if (EntityMessage.PGP_SIGNENCRYPT.equals(message.ui_encrypt) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(message.ui_encrypt))
db.attachment().deleteAttachments(sid,
new int[]{EntityAttachment.PGP_MESSAGE, EntityAttachment.SMIME_MESSAGE});
db.message().setMessageReceived(sid, start); db.message().setMessageReceived(sid, start);
db.message().setMessageSent(sid, end); db.message().setMessageSent(sid, end);
db.message().setMessageUiHide(sid, false); db.message().setMessageUiHide(sid, false);

Loading…
Cancel
Save