mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Apply suggestions from code review
Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
8ea509a935
commit
03c85335d1
@ -52,7 +52,7 @@ class SearchHandler(BaseHandler):
|
|||||||
room_id (str): id of the room to search through.
|
room_id (str): id of the room to search through.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Deferred[iterable[str]]: predecessor room ids
|
Deferred[iterable[unicode]]: predecessor room ids
|
||||||
"""
|
"""
|
||||||
|
|
||||||
historical_room_ids = []
|
historical_room_ids = []
|
||||||
|
@ -446,7 +446,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||||||
room_id (str)
|
room_id (str)
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Deferred[str]: predecessor room id
|
Deferred[unicode|None]: predecessor room id
|
||||||
"""
|
"""
|
||||||
state_ids = yield self.get_current_state_ids(room_id)
|
state_ids = yield self.get_current_state_ids(room_id)
|
||||||
create_id = state_ids.get((EventTypes.Create, ""))
|
create_id = state_ids.get((EventTypes.Create, ""))
|
||||||
|
Loading…
Reference in New Issue
Block a user