mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Fix cache issue
This commit is contained in:
parent
af15c1ccbd
commit
63be2e3843
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user