Add user path to logging exceptions

This commit is contained in:
Fedor Indutny 2021-06-01 11:15:23 -07:00 committed by GitHub
parent 0e19c17160
commit 33595646c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 41 deletions

View file

@ -550,6 +550,11 @@ try {
window.baseStickersPath = Attachments.getStickersPath(userDataPath);
window.baseTempPath = Attachments.getTempPath(userDataPath);
window.baseDraftPath = Attachments.getDraftPath(userDataPath);
const { addSensitivePath } = require('./ts/util/privacy');
addSensitivePath(window.baseAttachmentsPath);
window.Signal = Signal.setup({
Attachments,
userDataPath,