1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Fix cache issue

This commit is contained in:
Pierre HUBERT 2021-03-14 15:27:54 +01:00
parent af15c1ccbd
commit 63be2e3843

View File

@ -105,7 +105,7 @@ abstract class BaseSerializationHelper<T extends SerializableElement> {
await _loadCache(); await _loadCache();
// Insert or replace the element // Insert or replace the element
_cache.where((element) => !isToReplace(element)).toList(); _cache = _cache.where((element) => !isToReplace(element)).toList();
_cache.add(newEl); _cache.add(newEl);
_cache.sort(); _cache.sort();