Compare commits

..
Author SHA1 Message Date
Krishan 70d3278a66 Update readme 2022-11-08 20:18:20 +05:30
Krishan e44d0183dc Update Dockerfile 2022-11-08 15:25:54 +05:30
Krishan 796a5c52b6 Update Dockerfile 2022-11-07 15:33:40 +05:30
Krishan 2e0e8ca76f Update Nodejs LTS to v18.12.1 2022-11-07 15:32:34 +05:30
Krishan e6a7fb3c9f use lts syntax 2022-11-05 21:02:17 +05:30
Krishan 7e8df121e4 Use node v18.12.0 2022-11-01 20:24:34 +05:30
Krishan 39814d4ea2 Use node v18.12.0 2022-11-01 20:24:00 +05:30
Krishan 48144be445 Use node v18.12.0 2022-11-01 20:23:11 +05:30
Krishan cfa9094fb6 Use node hydrogen lts in dockerfile 2022-11-01 20:20:26 +05:30
8 changed files with 941 additions and 313 deletions

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
name: pr
- name: Output pr number
id: pr
run: echo "id=$(<pr.txt)" >> $GITHUB_OUTPUT
run: echo "::set-output name=id::$(<pr.txt)"
- name: Download artifact
uses: dawidd6/action-download-artifact@46b4ae883bf0726f5949d025d31cb62c7a5ac70c
with:
+1 -1
View File
@@ -1,9 +1,9 @@
{
"defaultHomeserver": 3,
"homeserverList": [
"converser.eu",
"envs.net",
"halogen.city",
"kde.org",
"matrix.org",
"mozilla.org"
],
+916 -295
View File
File diff suppressed because it is too large. Load diff
+8 -7
View File
@@ -4,7 +4,8 @@
"description": "Yet another matrix client",
"main": "index.js",
"engines": {
"node": ">=16.0.0"
"npm": ">=6.14.8",
"node": ">=14.15.0"
},
"scripts": {
"start": "webpack serve --config ./webpack.dev.js --open",
@@ -31,7 +32,7 @@
"katex": "0.16.3",
"linkify-html": "4.0.2",
"linkifyjs": "4.0.2",
"matrix-js-sdk": "21.0.1",
"matrix-js-sdk": "20.1.0",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-autosize-textarea": "7.1.0",
@@ -46,11 +47,11 @@
"twemoji": "14.0.2"
},
"devDependencies": {
"@babel/core": "7.20.2",
"@babel/preset-env": "7.20.2",
"@babel/core": "7.19.6",
"@babel/preset-env": "7.19.4",
"@babel/preset-react": "7.18.6",
"assert": "2.0.0",
"babel-loader": "9.1.0",
"babel-loader": "9.0.1",
"browserify-fs": "1.0.0",
"buffer": "6.0.3",
"clean-webpack-plugin": "4.0.0",
@@ -58,7 +59,7 @@
"crypto-browserify": "3.12.0",
"css-loader": "6.7.1",
"css-minimizer-webpack-plugin": "4.2.2",
"eslint": "8.27.0",
"eslint": "8.26.0",
"eslint-config-airbnb": "19.0.4",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
@@ -68,7 +69,7 @@
"html-webpack-plugin": "5.5.0",
"mini-css-extract-plugin": "2.6.1",
"path-browserify": "1.0.1",
"sass": "1.56.0",
"sass": "1.55.0",
"sass-loader": "13.1.0",
"stream-browserify": "3.0.0",
"style-loader": "3.3.1",
@@ -27,7 +27,9 @@ function ImagePackUpload({ onUpload }) {
setProgress(true);
const image = await scaleDownImage(imgFile, 512, 512);
const { content_uri: url } = await mx.uploadContent(image);
const url = await mx.uploadContent(image, {
onlyContentUri: true,
});
onUpload(shortcode, url);
setProgress(false);
@@ -22,7 +22,7 @@ function ImageUpload({
const file = e.target.files.item(0);
if (file === null) return;
try {
const uPromise = initMatrix.matrixClient.uploadContent(file);
const uPromise = initMatrix.matrixClient.uploadContent(file, { onlyContentUri: false });
setUploadPromise(uPromise);
const res = await uPromise;
+10 -6
View File
@@ -236,12 +236,16 @@ async function createRoom(opts) {
});
}
if (parentId && joinRule === 'restricted') {
const caps = await mx.getCapabilities();
if (caps['m.room_versions'].available?.['9'] !== 'stable') {
throw new Error("ERROR: The server doesn't support restricted rooms");
}
if (Number(caps['m.room_versions'].default) < 9) {
options.room_version = '9';
try {
const caps = await mx.getCapabilities();
options.room_version = caps
?.['m.room_versions']
?.['org.matrix.msc3244.room_capabilities']
?.restricted
?.preferred
|| undefined;
} catch {
console.error('Can\'t find room version for restricted.');
}
options.initial_state.push({
type: 'm.room.join_rules',
+1 -1
View File
@@ -395,7 +395,7 @@ class RoomsInput extends EventEmitter {
input.attachment.uploadingPromise = uploadingPromise;
this.roomIdToInput.set(roomId, input);
const { content_uri: url } = await uploadingPromise;
const url = await uploadingPromise;
delete input.attachment.uploadingPromise;
this.roomIdToInput.set(roomId, input);