diff --git a/README.md b/README.md index 1eb2c6e..d1c6009 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ The app loads runtime configutation from the server at "./config.json" and merge * **roomTypes** - Available room types. This affects what is shown on the /create route, as well as access to routes /createroom, /createchannel and /createfiledrop. It should be an array with possible values "group_chat", "channel" or "file_drop". Defaults to all values, ["group_chat", "channel", "file_drop"]. +* **disableMediaSharing** - Set this flag to true to disable voice messages and attachments. ### Sticker short codes - To enable sticker short codes, follow these steps: * Run the "create sticker config" script using "npm run create-sticker-config " diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 46b6aba..a08beb4 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -183,7 +183,7 @@ + v-if="!$config.disableMediaSharing && (!currentInput || currentInput.length == 0 || showRecorder)"> mic @@ -194,7 +194,7 @@ - + {{ editedEvent ? "save" : "arrow_upward" }} @@ -217,7 +217,7 @@ - +