From cd2dda268f9fd4bdb3ac83d8f66d980e7f26c90d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 11 Mar 2021 22:06:11 -0700 Subject: [PATCH 1/3] Add webpack config for opus-recorder worker --- webpack.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 2500792139..a1a248e391 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -252,6 +252,16 @@ module.exports = (env, argv) => { outputPath: '.', }, }, + { + test: /encoderWorker\.min\.js$/, + loader: "file-loader", + type: "javascript/auto", // https://github.com/webpack/webpack/issues/6725 + options: { + // We deliberately override the name so it makes sense in debugging + name: 'opus-encoderWorker.min.[hash:7].[ext]', + outputPath: '.', + }, + }, { // cache-bust languages.json file placed in // element-web/webapp/i18n during build by copy-res.js From 146ed151dd2601088636e78b41df1534b7eadf09 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 16 Mar 2021 23:24:26 -0600 Subject: [PATCH 2/3] Add docs for labs flag --- docs/labs.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/labs.md b/docs/labs.md index bcaec9976a..887ce93d52 100644 --- a/docs/labs.md +++ b/docs/labs.md @@ -123,3 +123,10 @@ or feedback for this functionality at this time. Allows users to receive encrypted messages by creating a device that is stored encrypted on the server, as described in [MSC2697](https://github.com/matrix-org/matrix-doc/pull/2697). + +## Voice messages (`feature_voice_messages`) [In Development] + +An in-progress implementation of [MSC2516](https://github.com/matrix-org/matrix-doc/pull/2516) to add +[voice messages](https://github.com/vector-im/element-web/issues/1358) to Element. Note that this feature +is currently under active development and therefore is entirely incomplete and may not work at all - it +is not recommended for general use at this time. From 4eb7c1bc003d20dd0adb9b64c3f08833a38e8b90 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 23 Mar 2021 18:29:26 -0600 Subject: [PATCH 3/3] Add docs for where the worker comes from --- webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index a1a248e391..2335ea9a03 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -253,6 +253,8 @@ module.exports = (env, argv) => { }, }, { + // Fix up the name of the opus-recorder worker (react-sdk dependency). + // We more or less just want it to be clear it's for opus and not something else. test: /encoderWorker\.min\.js$/, loader: "file-loader", type: "javascript/auto", // https://github.com/webpack/webpack/issues/6725