Fix item losing its parent model when filtered out

This commit is contained in:
miruka 2020-05-14 21:21:11 -04:00
parent 631e2bc107
commit dfd7d509a4
2 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
# TODO
- 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: on startup, if a room's last event is a membership change,

View File

@ -135,7 +135,7 @@ class Model(MutableMapping):
with self._write_lock:
item = self._data[key]
if self.sync_id:
if self.sync_id and self.take_items_ownership:
item.parent_model = None
del self._data[key]