Debug: write PGP raw message file

pull/214/head
M66B 1 year ago
parent f7ef8683b6
commit ca28642b2b

@ -8931,9 +8931,11 @@ public class FragmentMessages extends FragmentBase
db.message().setMessageStored(message.id, new Date().getTime()); db.message().setMessageStored(message.id, new Date().getTime());
db.message().setMessageFts(message.id, false); db.message().setMessageFts(message.id, false);
File raw = message.getRawFile(context); if (BuildConfig.DEBUG || debug) {
Helper.copy(plain, raw); File raw = message.getRawFile(context);
db.message().setMessageRaw(message.id, true); Helper.copy(plain, raw);
db.message().setMessageRaw(message.id, true);
}
db.setTransactionSuccessful(); db.setTransactionSuccessful();
} catch (SQLiteConstraintException ex) { } catch (SQLiteConstraintException ex) {

Loading…
Cancel
Save