Skip to content

Commit b403414

Browse files
authored
Merge pull request #1516 from Hirobreak/small-fix
fixing backup 99 percent and multiselect unread
2 parents 9cca65a + ff0b5a7 commit b403414

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

electron_app/src/backup/exporter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ const handleRegisterBackup = (email, backupPath) => {
133133
writeJson(process.env.AUDITPATH, audit);
134134
} else {
135135
const deletePath = audit[email].shift();
136-
deleteFile(deletePath);
136+
try {
137+
deleteFile(deletePath);
138+
} catch (ex) {
139+
console.error('Unable to delete path:', deletePath);
140+
}
137141
audit[email].push(backupPath);
138142
writeJson(process.env.AUDITPATH, audit);
139143
}

email_mailbox/src/actions/threads.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export const updateUnreadThreads = (threadIds, unread, labelId) => {
530530
return async dispatch => {
531531
try {
532532
if (!threadIds.length) return;
533-
const threadIdsEvent = [...this.threadIds];
533+
const threadIdsEvent = [...threadIds];
534534
let threadIdsForEvent = threadIdsEvent.splice(0, PEER_BATCH);
535535
while (threadIdsForEvent.length > 0) {
536536
const eventParams = {

0 commit comments

Comments
 (0)