mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-09 06:23:30 +08:00
Shorten account IDs because they don’t need to be globally unique
This commit is contained in:
parent
6368f12a83
commit
93ea673a1d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function idForAccount(emailAddress, connectionSettings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const idString = `${emailAddress}${JSON.stringify(settingsThatCouldChangeMailContents)}`;
|
const idString = `${emailAddress}${JSON.stringify(settingsThatCouldChangeMailContents)}`;
|
||||||
return crypto.createHash('sha256').update(idString, 'utf8').digest('hex');
|
return crypto.createHash('sha256').update(idString, 'utf8').digest('hex').substr(0, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function expandAccountWithCommonSettings(account) {
|
export function expandAccountWithCommonSettings(account) {
|
||||||
|
|
Loading…
Reference in a new issue