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

Commit

Permalink
Merge pull request #6509 from matrix-org/babolivier/fix-room-store-co…
Browse files Browse the repository at this point in the history
…nfig

* commit 'a964f1888':
  Changelog
  Give the server config to the RoomWorkerStore
  • Loading branch information
anoadragon453 committed Mar 19, 2020
2 parents 7c5aae5 + a964f18 commit 9489c67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6509.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix pusher worker failing because it can't retrieve retention policies for rooms.
5 changes: 5 additions & 0 deletions synapse/storage/data_stores/main/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@


class RoomWorkerStore(SQLBaseStore):
def __init__(self, database: Database, db_conn, hs):
super(RoomWorkerStore, self).__init__(database, db_conn, hs)

self.config = hs.config

def get_room(self, room_id):
"""Retrieve a room.
Expand Down

0 comments on commit 9489c67

Please sign in to comment.