Fix invite notifications for users without pushers (#12840)

Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
Co-authored-by: Brendan Abolivier <github@brendanabolivier.com>
This commit is contained in:
DeepBlueV7.X 2022-05-30 11:14:43 +00:00 committed by GitHub
parent 2480461879
commit b10211871f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 96 additions and 12 deletions

View file

@ -91,12 +91,6 @@ class PusherWorkerStore(SQLBaseStore):
yield PusherConfig(**r)
async def user_has_pusher(self, user_id: str) -> bool:
ret = await self.db_pool.simple_select_one_onecol(
"pushers", {"user_name": user_id}, "id", allow_none=True
)
return ret is not None
async def get_pushers_by_app_id_and_pushkey(
self, app_id: str, pushkey: str
) -> Iterator[PusherConfig]: