From 5c16ddaf7c5ff44a13319c1fdcd9a148890151a8 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 8 Feb 2024 13:55:40 +0000 Subject: [PATCH] Fix get_dm_rooms Fix suggested by @fvjosef21:matrix.org. --- src/niobot/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/niobot/client.py b/src/niobot/client.py index c6b6bb2..4f41101 100644 --- a/src/niobot/client.py +++ b/src/niobot/client.py @@ -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)