Commit d2e46646 authored by Francisco Cunha's avatar Francisco Cunha

P4A-958 - Fix duplicated draft

header HEADER_PEP_RATING adding changed to setRating, so it can change
the message rating without the reuload of it
parent f1fd4b0a
......@@ -2271,8 +2271,7 @@ public class MessagingController implements Sync.MessageToSendCallback, KeyImpor
localMessage.setUid(encryptedMessage.getUid());
localFolder.changeUid(localMessage);
if (localMessage.getFolder().getName().equals(account.getDraftsFolderName())) {
localMessage.addHeader(MimeHeader.HEADER_PEP_RATING, PEpUtils.ratingToString(pEpProvider.getRating(localMessage)));
localFolder.appendMessages(Collections.singletonList(localMessage));
localMessage.setpEpRating(pEpProvider.getRating(localMessage));
}
for (MessagingListener l : getListeners()) {
l.messageUidChanged(account, folder, oldUid, localMessage.getUid());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment