Skip to content

Commit

Permalink
Use m.thread for threads in figma (#236)
Browse files Browse the repository at this point in the history
* Switch to m.thread now that it is stable

* Fix missing </strong>

* changelog
  • Loading branch information
Half-Shot committed Mar 11, 2022
1 parent 5531bc8 commit e72fe4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/236.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use stable key `m.thread` for Figma threads.
5 changes: 2 additions & 3 deletions src/Connections/FigmaFileConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -84,7 +83,7 @@ export class FigmaFileConnection extends BaseConnection implements IConnection {
}
},
body: `**${name}**: ${comment}`,
formatted_body: `<strong>${name}<strong>: ${comment}`,
formatted_body: `<strong>${name}</strong>: ${comment}`,
format: "org.matrix.custom.html",
msgtype: "m.notice",
"uk.half-shot.matrix-hookshot.figma.comment_id": payload.comment_id,
Expand Down

0 comments on commit e72fe4b

Please sign in to comment.