Get SortProxyFilterModel stuff working?

Came back from a break and forgot what I was fixing
This commit is contained in:
miruka
2020-02-03 16:19:42 -04:00
parent d8e18c3337
commit a653a6160a
8 changed files with 46 additions and 63 deletions

View File

@@ -45,11 +45,6 @@ class Account(ModelItem):
other_name = other.display_name or other.id[1:]
return name.lower() < other_name.lower()
@property
def filter_string(self) -> str:
"""Filter based on display name."""
return self.display_name
@dataclass
class Room(ModelItem):
@@ -106,12 +101,6 @@ class Room(ModelItem):
(other.display_name or other.id).lower(),
)
@property
def filter_string(self) -> str:
"""Filter based on room display name, topic, and last event content."""
return " ".join((self.display_name, self.topic))
@dataclass
class Member(ModelItem):