File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,7 @@ async def get_user_by_access_token(
349
349
# TODO: introspection verification should be more extensive, especially:
350
350
# - verify the audience
351
351
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 )
355
353
356
354
# Let's look at the scope
357
355
scope : List [str ] = scope_to_list (introspection_result .get ("scope" , "" ))
Original file line number Diff line number Diff line change @@ -1735,8 +1735,8 @@ async def get_new_events(
1735
1735
from_key = RoomStreamToken (stream = from_key .stream )
1736
1736
1737
1737
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
+ )
1740
1740
1741
1741
room_to_events = await self .store .get_room_events_stream_for_rooms (
1742
1742
room_ids = room_ids ,
You can’t perform that action at this time.
0 commit comments