Skip to content

Commit e4cba81

Browse files
author
Erika Perugachi
authored
Merge pull request #1077 from erikaperugachi/fix
hot fix 🤪
2 parents a83cbb1 + 9980aca commit e4cba81

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

electron_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "criptext",
3-
"version": "0.20.0",
3+
"version": "0.20.1",
44
"author": {
55
"name": "Criptext Inc",
66
"email": "[email protected]",

email_mailbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "email_mailbox",
3-
"version": "0.20.0",
3+
"version": "0.20.1",
44
"private": true,
55
"dependencies": {
66
"@criptext/electron-better-ipc": "^0.1.2-rc5",

email_mailbox/src/utils/electronEventInterface.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ const handleNewMessageEvent = async ({ rowid, params }) => {
395395
const contactSpamToCheck = await getContactByEmails([
396396
contactObjectSpamToCheck.email
397397
]);
398-
const isContactSpamer = contactSpamToCheck[0].spamScore > 1;
398+
const isContactSpamer = contactSpamToCheck[0]
399+
? contactSpamToCheck[0].spamScore > 1
400+
: false;
399401
const isSpam = labels
400402
? labels.find(label => label === LabelType.spam.text) || isContactSpamer
401403
: undefined;

0 commit comments

Comments
 (0)