mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-21 20:39:22 +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();
|
||||
|
||||
// Insert or replace the element
|
||||
_cache.where((element) => !isToReplace(element)).toList();
|
||||
_cache = _cache.where((element) => !isToReplace(element)).toList();
|
||||
_cache.add(newEl);
|
||||
|
||||
_cache.sort();
|
||||
|
Loading…
Reference in New Issue
Block a user