mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-26 13:15:19 -04:00
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:
parent
2480461879
commit
b10211871f
4 changed files with 96 additions and 12 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue