Fix email sync (#5132)

This commit is contained in:
Charles Bochet
2024-04-23 18:50:37 +02:00
committed by GitHub
parent 444e97fa3e
commit fafa56411c
3 changed files with 21 additions and 3 deletions

View File

@ -55,9 +55,11 @@ export class CacheStorageService {
return this.get(key).then((res: string[]) => {
if (res) {
this.set(key, res.slice(0, -size));
return res.slice(-size);
}
return res;
return [];
});
}