Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9489c67

Browse files
committed
Merge pull request #6509 from matrix-org/babolivier/fix-room-store-config
* commit 'a964f1888': Changelog Give the server config to the RoomWorkerStore
2 parents 7c5aae5 + a964f18 commit 9489c67

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.d/6509.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix pusher worker failing because it can't retrieve retention policies for rooms.

synapse/storage/data_stores/main/room.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646

4747

4848
class RoomWorkerStore(SQLBaseStore):
49+
def __init__(self, database: Database, db_conn, hs):
50+
super(RoomWorkerStore, self).__init__(database, db_conn, hs)
51+
52+
self.config = hs.config
53+
4954
def get_room(self, room_id):
5055
"""Retrieve a room.
5156

0 commit comments

Comments
 (0)