From dfd7d509a401a5851b1eb06f6d9e58e158a6f415 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 14 May 2020 21:21:11 -0400 Subject: [PATCH] Fix item losing its parent model when filtered out --- TODO.md | 2 -- src/backend/models/model.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index ed3bdfd4..9602e851 100644 --- a/TODO.md +++ b/TODO.md @@ -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, diff --git a/src/backend/models/model.py b/src/backend/models/model.py index 3c5927ad..8ebd9ac6 100644 --- a/src/backend/models/model.py +++ b/src/backend/models/model.py @@ -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]