Skip to content

Commit d1db3ef

Browse files
committed
format run
1 parent 64dd5f8 commit d1db3ef

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

synapse/api/auth/msc3861_delegated.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ async def get_user_by_access_token(
349349
# TODO: introspection verification should be more extensive, especially:
350350
# - verify the audience
351351
if not introspection_result.get("active"):
352-
raise InvalidClientTokenError(
353-
msg="Token is not active", soft_logout=True
354-
)
352+
raise InvalidClientTokenError(msg="Token is not active", soft_logout=True)
355353

356354
# Let's look at the scope
357355
scope: List[str] = scope_to_list(introspection_result.get("scope", ""))

synapse/handlers/room.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,8 +1735,8 @@ async def get_new_events(
17351735
from_key = RoomStreamToken(stream=from_key.stream)
17361736

17371737
room_events = await self.store.get_membership_changes_for_user(
1738-
user.to_string(), from_key, to_key
1739-
)
1738+
user.to_string(), from_key, to_key
1739+
)
17401740

17411741
room_to_events = await self.store.get_room_events_stream_for_rooms(
17421742
room_ids=room_ids,

0 commit comments

Comments
 (0)