diff --git a/changelog.d/236.feature b/changelog.d/236.feature new file mode 100644 index 000000000..be7b561cc --- /dev/null +++ b/changelog.d/236.feature @@ -0,0 +1 @@ +Use stable key `m.thread` for Figma threads. \ No newline at end of file diff --git a/src/Connections/FigmaFileConnection.ts b/src/Connections/FigmaFileConnection.ts index 0f3628846..07deefd66 100644 --- a/src/Connections/FigmaFileConnection.ts +++ b/src/Connections/FigmaFileConnection.ts @@ -14,8 +14,7 @@ export interface FigmaFileConnectionState { instanceName?: string; } -// Unstable prefix, change to m.thread once released. -const THREAD_RELATION_TYPE = "io.element.thread"; +const THREAD_RELATION_TYPE = "m.thread"; const md = markdownit(); export class FigmaFileConnection extends BaseConnection implements IConnection { @@ -84,7 +83,7 @@ export class FigmaFileConnection extends BaseConnection implements IConnection { } }, body: `**${name}**: ${comment}`, - formatted_body: `${name}: ${comment}`, + formatted_body: `${name}: ${comment}`, format: "org.matrix.custom.html", msgtype: "m.notice", "uk.half-shot.matrix-hookshot.figma.comment_id": payload.comment_id,