Debugging

This commit is contained in:
M66B 2021-03-02 13:04:10 +01:00
parent c456af284d
commit f188471b56
1 changed files with 6 additions and 0 deletions

View File

@ -6248,6 +6248,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
db.message().setMessageStored(message.id, new Date().getTime());
db.message().setMessageFts(message.id, false);
if (BuildConfig.DEBUG && false) {
File raw = message.getRawFile(context);
Helper.copy(plain, raw);
db.message().setMessageRaw(message.id, true);
}
db.setTransactionSuccessful();
} catch (SQLiteConstraintException ex) {
// Message removed