[local-sync] Outbox shouldn't be included in localized names for sent

Summary:
Otherwise accounts with `Sent` and an `Outbox` will both get the `sent`
role, causing inconsistencies in sync

Addresses T7682

Test Plan: manual

Reviewers: khamidou, spang

Reviewed By: khamidou, spang

Differential Revision: https://phab.nylas.com/D3773
This commit is contained in:
Juan Tejada 2017-01-25 00:21:25 -08:00
parent bc0b411be7
commit cdf43ba804
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ class FetchFolderListIMAP extends SyncTask {
const role = this._roleByName(boxName);
if (role) {
category.role = role;
category.save();
await category.save();
}
}
existing.add(category);

View file

@ -30,7 +30,7 @@ module.exports = {
'\xeb\xb3\xb4\xeb\x82\xbc\xed\x8e\xb8\xec\xa7\x80\xed\x95\xa8',
'elementos enviados', 'sent', 'sent items', 'sent messages',
'inbox.papierkorb', 'odeslan\xc3\xa9', 'mail/sent-mail',
'ko\xc5\xa1', 'outbox', 'outbox', 'inbox.sentmail', 'gesendet',
'ko\xc5\xa1', 'inbox.sentmail', 'gesendet',
'ko\xc5\xa1/sent items', 'gesendete elemente']),
archive: new Set([
'archive',