From d34468a0b94b7e1d15ca24a553d731dc6db61987 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 15 Jul 2025 10:16:16 -0500 Subject: [PATCH] =?UTF-8?q?Sentry=20fix:=20Make=20sure=20we=20don=E2=80=99?= =?UTF-8?q?t=20call=20utf7.imap.encode=20with=20a=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/flux/tasks/syncback-category-task.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/flux/tasks/syncback-category-task.ts b/app/src/flux/tasks/syncback-category-task.ts index 3778a17fe..e231974e3 100644 --- a/app/src/flux/tasks/syncback-category-task.ts +++ b/app/src/flux/tasks/syncback-category-task.ts @@ -25,7 +25,7 @@ export class SyncbackCategoryTask extends Task { static forCreating({ name, accountId }: { name: string; accountId: string }) { return new SyncbackCategoryTask({ - path: utf7.imap.encode(name), + path: utf7.imap.encode(String(name)), accountId: accountId, }); } @@ -41,7 +41,7 @@ export class SyncbackCategoryTask extends Task { }) { return new SyncbackCategoryTask({ existingPath: path, - path: utf7.imap.encode(newName), + path: utf7.imap.encode(String(newName)), accountId: accountId, }); } @@ -52,7 +52,7 @@ export class SyncbackCategoryTask extends Task { label() { return this.existingPath - ? localized(`Renaming %@`, utf7.imap.decode(this.existingPath)) - : localized(`Creating %@`, utf7.imap.decode(this.path)); + ? localized(`Renaming %@`, utf7.imap.decode(String(this.existingPath))) + : localized(`Creating %@`, utf7.imap.decode(String(this.path))); } }