mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 05:34:23 +08:00
Sentry fix: Make sure we don’t call utf7.imap.encode with a number
This commit is contained in:
parent
307dbfda32
commit
d34468a0b9
1 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ export class SyncbackCategoryTask extends Task {
|
||||||
|
|
||||||
static forCreating({ name, accountId }: { name: string; accountId: string }) {
|
static forCreating({ name, accountId }: { name: string; accountId: string }) {
|
||||||
return new SyncbackCategoryTask({
|
return new SyncbackCategoryTask({
|
||||||
path: utf7.imap.encode(name),
|
path: utf7.imap.encode(String(name)),
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ export class SyncbackCategoryTask extends Task {
|
||||||
}) {
|
}) {
|
||||||
return new SyncbackCategoryTask({
|
return new SyncbackCategoryTask({
|
||||||
existingPath: path,
|
existingPath: path,
|
||||||
path: utf7.imap.encode(newName),
|
path: utf7.imap.encode(String(newName)),
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ export class SyncbackCategoryTask extends Task {
|
||||||
|
|
||||||
label() {
|
label() {
|
||||||
return this.existingPath
|
return this.existingPath
|
||||||
? localized(`Renaming %@`, utf7.imap.decode(this.existingPath))
|
? localized(`Renaming %@`, utf7.imap.decode(String(this.existingPath)))
|
||||||
: localized(`Creating %@`, utf7.imap.decode(this.path));
|
: localized(`Creating %@`, utf7.imap.decode(String(this.path)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue