From 4366a6df4671636ddd15914ae0b9c8bc8f19d87e Mon Sep 17 00:00:00 2001 From: gnuxie Date: Thu, 15 Feb 2024 18:14:28 +0000 Subject: [PATCH] MPS `ActionError['addContext']` got renamed to `elaborate`. --- src/commands/Rooms.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/Rooms.tsx b/src/commands/Rooms.tsx index 2e4ed6af..9ca427ef 100644 --- a/src/commands/Rooms.tsx +++ b/src/commands/Rooms.tsx @@ -85,7 +85,7 @@ defineInterfaceCommand({ command: async function (this: DraupnirContext, _keywords, roomRef: MatrixRoomReference): Promise> { const room = await resolveRoomReferenceSafe(this.client, roomRef); if (isError(room)) { - return room.addContext( + return room.elaborate( `The homeserver that Draupnir is hosted on cannot join this room using the room reference provided.\ Try an alias or the "share room" button in your client to obtain a valid reference to the room.`, ); @@ -108,7 +108,7 @@ defineInterfaceCommand({ command: async function (this: DraupnirContext, _keywords, roomRef: MatrixRoomReference): Promise> { const room = await resolveRoomReferenceSafe(this.client, roomRef); if (isError(room)) { - return room.addContext( + return room.elaborate( `The homeserver that Draupnir is hosted on cannot join this room using the room reference provided.\ Try an alias or the "share room" button in your client to obtain a valid reference to the room.`, );