Compare commits

...

2 Commits

Author SHA1 Message Date
Brendan Abolivier
df3f489f5b Changelog 2022-05-11 17:00:51 +01:00
Brendan Abolivier
32e64b4bcd Don't prune cache entries for get_or_create_notice_room_for_user 2022-05-11 16:37:48 +01:00
2 changed files with 2 additions and 1 deletions

1
changelog.d/12712.bugfix Normal file
View File

@@ -0,0 +1 @@
Fix a bug introduced in Synapse 1.38.0 where empty rooms would be created automatically if an MAU limit was set and time-based cache expiry was turned on.

View File

@@ -90,7 +90,7 @@ class ServerNoticesManager:
) )
return event return event
@cached() @cached(prune_unread_entries=False)
async def get_or_create_notice_room_for_user(self, user_id: str) -> str: async def get_or_create_notice_room_for_user(self, user_id: str) -> str:
"""Get the room for notices for a given user """Get the room for notices for a given user