Skip to content

Commit

Permalink
Fix get_dm_rooms
Browse files Browse the repository at this point in the history
Fix suggested by @fvjosef21:matrix.org.
  • Loading branch information
nexy7574 authored Feb 8, 2024
1 parent 7256490 commit 5c16dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/niobot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ async def get_dm_rooms(
result = await self._send(
DirectRoomsResponse,
"GET",
nio.Api._build_path(["user", self.user_id, "account_data", "m.direct"]),
nio.Api._build_path(["user", self.user_id, "account_data", "m.direct"], {"access-token", self.access_token}),
)
if isinstance(result, DirectRoomsErrorResponse):
raise GenericMatrixError("Failed to get DM rooms", response=result)
Expand Down

1 comment on commit 5c16dda

@fvjosef21
Copy link
Contributor

@fvjosef21 fvjosef21 commented on 5c16dda Feb 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be {"access-token": self.access_token})

We need a dict, not a set.

Please sign in to comment.