Fix item losing its parent model when filtered out
This commit is contained in:
parent
631e2bc107
commit
dfd7d509a4
2
TODO.md
2
TODO.md
|
@ -1,8 +1,6 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- fix python getting stuck when loading large room
|
- fix python getting stuck when loading large room
|
||||||
- fix accounts in room list not getting their profile updated if mirage starts
|
|
||||||
with a filter
|
|
||||||
- fix lag when clicking accounts in the AccountBar with a very long room list
|
- fix lag when clicking accounts in the AccountBar with a very long room list
|
||||||
|
|
||||||
- fix: on startup, if a room's last event is a membership change,
|
- fix: on startup, if a room's last event is a membership change,
|
||||||
|
|
|
@ -135,7 +135,7 @@ class Model(MutableMapping):
|
||||||
with self._write_lock:
|
with self._write_lock:
|
||||||
item = self._data[key]
|
item = self._data[key]
|
||||||
|
|
||||||
if self.sync_id:
|
if self.sync_id and self.take_items_ownership:
|
||||||
item.parent_model = None
|
item.parent_model = None
|
||||||
|
|
||||||
del self._data[key]
|
del self._data[key]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user