From b10211871fd19013631cf5d798a90f74a86c6c56 Mon Sep 17 00:00:00 2001 From: "DeepBlueV7.X" Date: Mon, 30 May 2022 11:14:43 +0000 Subject: Fix invite notifications for users without pushers (#12840) Signed-off-by: Nicolas Werner Co-authored-by: Brendan Abolivier --- synapse/storage/databases/main/pusher.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'synapse/storage/databases/main') diff --git a/synapse/storage/databases/main/pusher.py b/synapse/storage/databases/main/pusher.py index 91286c9b65..bd0cfa7f32 100644 --- a/synapse/storage/databases/main/pusher.py +++ b/synapse/storage/databases/main/pusher.py @@ -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]: -- cgit 1.5.1