1
0

stores can be None

This commit is contained in:
Will Hunt
2020-10-09 09:51:37 +01:00
parent c87401b229
commit c09ee2ec00

View File

@@ -144,7 +144,9 @@ class ApplicationService:
return regex_obj["exclusive"]
return False
async def _matches_user(self, event: EventBase, store: "DataStore") -> bool:
async def _matches_user(
self, event: EventBase, store: Optional["DataStore"] = None
) -> bool:
if not event:
return False
@@ -186,7 +188,9 @@ class ApplicationService:
return self.is_interested_in_room(event.room_id)
return False
async def _matches_aliases(self, event: EventBase, store: "DataStore") -> bool:
async def _matches_aliases(
self, event: EventBase, store: Optional["DataStore"] = None
) -> bool:
if not store or not event:
return False