replace deprecated resolveRoomAlias

This commit is contained in:
Ajay Bura 2023-11-01 10:06:03 +05:30
parent 764e299211
commit 19d5ca9147
2 changed files with 2 additions and 2 deletions

View file

@ -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}...`);

View file

@ -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) {