Skip to content

Commit

Permalink
hotfix to use the proper prefix for the threads list API
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Oct 20, 2022
1 parent a230981 commit e3bc241
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5554,6 +5554,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
const opts: { prefix?: string } = {};
if (Thread.hasServerSideListSupport === FeatureSupport.Experimental) {
opts.prefix = "/_matrix/client/unstable/org.matrix.msc3856";
} else if (Thread.hasServerSideListSupport === FeatureSupport.Stable) {
opts.prefix = "/_matrix/client/v1";
}

return this.http.authedRequest<IThreadedMessagesResponse>(Method.Get, path, params, undefined, opts)
Expand Down

0 comments on commit e3bc241

Please sign in to comment.