mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 20:43:52 +01:00
Remove unused get_room_stats_state
method. (#6869)
This commit is contained in:
parent
799001f2c0
commit
e1d858984d
2 changed files with 1 additions and 25 deletions
1
changelog.d/6869.misc
Normal file
1
changelog.d/6869.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Remove unused `get_room_stats_state` method.
|
|
@ -271,31 +271,6 @@ class StatsStore(StateDeltasStore):
|
||||||
|
|
||||||
return slice_list
|
return slice_list
|
||||||
|
|
||||||
def get_room_stats_state(self, room_id):
|
|
||||||
"""
|
|
||||||
Returns the current room_stats_state for a room.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
room_id (str): The ID of the room to return state for.
|
|
||||||
|
|
||||||
Returns (dict):
|
|
||||||
Dictionary containing these keys:
|
|
||||||
"name", "topic", "canonical_alias", "avatar", "join_rules",
|
|
||||||
"history_visibility"
|
|
||||||
"""
|
|
||||||
return self.db.simple_select_one(
|
|
||||||
"room_stats_state",
|
|
||||||
{"room_id": room_id},
|
|
||||||
retcols=(
|
|
||||||
"name",
|
|
||||||
"topic",
|
|
||||||
"canonical_alias",
|
|
||||||
"avatar",
|
|
||||||
"join_rules",
|
|
||||||
"history_visibility",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
@cached()
|
@cached()
|
||||||
def get_earliest_token_for_stats(self, stats_type, id):
|
def get_earliest_token_for_stats(self, stats_type, id):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue