Skip to content

Commit

Permalink
Update Hydrogen SDK dependency 0.26.0-scratch - 2023-04-26 (#189)
Browse files Browse the repository at this point in the history
Of note:

 - Adds date headers, element-hq/hydrogen-web#938
 - Add "Copy matrix.to permalink" message action, element-hq/hydrogen-web#921
 - Removes `?v=3.13` query parameters from Inter font references in CSS, element-hq/hydrogen-web#961
    - This is what we need to solve #187 (comment)
  • Loading branch information
MadLittleMods authored Apr 26, 2023
1 parent bc900f9 commit f0a1113
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
28 changes: 14 additions & 14 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 @@
"dompurify": "^2.3.9",
"escape-string-regexp": "^4.0.0",
"express": "^4.17.2",
"hydrogen-view-sdk": "npm:@mlm/hydrogen-view-sdk@^0.25.0-scratch",
"hydrogen-view-sdk": "npm:@mlm/hydrogen-view-sdk@^0.26.0-scratch",
"json5": "^2.2.1",
"linkedom": "^0.14.17",
"matrix-public-archive-shared": "file:./shared/",
Expand Down
5 changes: 4 additions & 1 deletion shared/hydrogen-vm-render-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ async function mountHydrogen() {
const navigation = createNavigation();
platform.setNavigation(navigation);

const archiveHistory = new ArchiveHistory(`#/session/123/room/${roomData.id}`);
const archiveHistory = new ArchiveHistory(
// We just have to match what Hydrogen is doing here.
`#/session/123/room/${encodeURIComponent(roomData.id)}`
);
const urlRouter = createRouter({
navigation: navigation,
// We use our own history because we want the hash to be relative to the
Expand Down

0 comments on commit f0a1113

Please sign in to comment.