Skip to content

Commit

Permalink
Up-mx-js-sdk-29 (#1533)
Browse files Browse the repository at this point in the history
* update matrix-js-sdk

* replace deprecated resolveRoomAlias
  • Loading branch information
ajbura authored Dec 24, 2023
1 parent 2a1bf4a commit bb88eb7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 20 deletions.
58 changes: 41 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"linkify-html": "4.0.2",
"linkify-react": "4.1.1",
"linkifyjs": "4.0.2",
"matrix-js-sdk": "24.1.0",
"matrix-js-sdk": "29.1.0",
"millify": "6.1.0",
"pdfjs-dist": "3.10.111",
"prismjs": "1.29.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/organisms/join-alias/JoinAlias.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function JoinAliasContent({ term, requestClose }) {
let via;
if (alias.startsWith('#')) {
try {
const aliasData = await mx.resolveRoomAlias(alias);
const aliasData = await mx.getRoomIdForAlias(alias);
via = aliasData?.servers.slice(0, 3) || [];
if (mountStore.getItem()) {
setProcess(`Joining ${alias}...`);
Expand Down
2 changes: 1 addition & 1 deletion src/util/matrixUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function getUsernameOfRoomMember(roomMember) {

export async function isRoomAliasAvailable(alias) {
try {
const result = await initMatrix.matrixClient.resolveRoomAlias(alias);
const result = await initMatrix.matrixClient.getRoomIdForAlias(alias);
if (result.room_id) return false;
return false;
} catch (e) {
Expand Down

0 comments on commit bb88eb7

Please sign in to comment.