Skip to content

Commit

Permalink
Merge branch 'dev' into center-preview-images
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 authored Dec 29, 2023
2 parents a9495fa + bb88eb7 commit 798265e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 24 deletions.
3 changes: 1 addition & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"defaultHomeserver": 3,
"defaultHomeserver": 2,
"homeserverList": [
"0wnz.at",
"converser.eu",
"envs.net",
"matrix.org",
Expand Down
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
6 changes: 4 additions & 2 deletions src/app/components/image-viewer/ImageViewer.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ export const ImageViewerImg = style([
DefaultReset,
{
objectFit: 'contain',
width: '100%',
height: '100%',
width: 'auto',
height: 'auto',
maxWidth: '100%',
maxHeight: '100%',
backgroundColor: color.Surface.Container,
transition: 'transform 100ms linear',
},
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 798265e

Please sign in to comment.