mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-08-28 23:00:45 +00:00
MPS ActionError['addContext'] got renamed to elaborate.
This commit is contained in:
@@ -85,7 +85,7 @@ defineInterfaceCommand({
|
||||
command: async function (this: DraupnirContext, _keywords, roomRef: MatrixRoomReference): Promise<ActionResult<void>> {
|
||||
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<ActionResult<void>> {
|
||||
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.`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user