Skip to content

Commit

Permalink
Merge pull request #16705 from vector-im/travis/voice-messages/exp
Browse files Browse the repository at this point in the history
Add webpack config and labs flag docs for voice messages
  • Loading branch information
turt2live authored Mar 24, 2021
2 parents c5cff11 + 4eb7c1b commit 6201c3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/labs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
12 changes: 12 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ module.exports = (env, argv) => {
outputPath: '.',
},
},
{
// 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
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
Expand Down

0 comments on commit 6201c3a

Please sign in to comment.