Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Make the "Voice message" button in the message composer configurable #11603

Conversation

grantm
Copy link

@grantm grantm commented Sep 13, 2023

  • With this change the user can choose to hide the "Voice message" button in the message composer menu.

  • The site administrator may also choose to hide the button by including this in the site config:

    "setting_defaults": { ... "MessageComposerInput.showVoiceRecordingButton": false, ... },

  • Note: the button label reads "Voice Message" but the code refers to it as the voiceRecordingButton.

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Type: enhancement


Here's what your changelog entry will look like:

✨ Features

  • Make the "Voice message" button in the message composer configurable (#11603). Contributed by @grantm.

* With this change the user can choose to hide the "Voice message" button
  in the message composer menu.

* The site administrator may also choose to hide the button by including
  this in the site config:

  "setting_defaults": {
    ...
    "MessageComposerInput.showVoiceRecordingButton": false,
    ...
  },

* Note: the button label reads "Voice Message" but the code refers to it
  as the voiceRecordingButton.

Signed-off-by: Grant McLean <[email protected]>
@grantm grantm requested a review from a team as a code owner September 13, 2023 02:09
@grantm grantm requested review from t3chguy and robintown September 13, 2023 02:09
@github-actions github-actions bot added Z-Community-PR Issue is solved by a community member's PR T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements labels Sep 13, 2023
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me

@robintown
Copy link
Member

@grantm You have a failing snapshot test that needs updating before this can be merged

@grantm
Copy link
Author

grantm commented Sep 19, 2023

@grantm You have a failing snapshot test that needs updating before this can be merged

I've just pushed a commit to fix that snapshot test.

The next issue will likely be a merge failure due to other changes in src/i18n/strings/en_EN.json. What's the preferred way to deal with rebasing a patch? Can I rebase, resolve and force push to my PR?

@t3chguy
Copy link
Member

t3chguy commented Sep 19, 2023

force pushing will discard review so please avoid it. We squash merge so don't worry about it.

auto-merge was automatically disabled September 21, 2023 08:16

Head branch was pushed to by a user without write access

@t3chguy t3chguy enabled auto-merge September 21, 2023 08:17
auto-merge was automatically disabled October 2, 2023 21:22

Head branch was pushed to by a user without write access

@grantm
Copy link
Author

grantm commented Nov 15, 2023

Is there anything further I need to do on this one?

I seem to recall there was quite a spate of flakey tests blocking it. I now have a set up where I can run the Cypress tests and I see the following three test failing consistently as of today:

  • crypto/crypto.spec.ts
  • presence/presence.spec.ts
  • read-receipts/redactions.spec.ts

The failures don't seem to be related my change and the same tests fail in the same way on develop without my changes.

@t3chguy
Copy link
Member

t3chguy commented Nov 15, 2023

It looks like the code coverage for the change is not sufficient for it to pass the gate

@grantm
Copy link
Author

grantm commented Nov 15, 2023

OK, thanks. I'll take a look.

@t3chguy
Copy link
Member

t3chguy commented Jul 29, 2024

@grantm hey any update on this?

@grantm
Copy link
Author

grantm commented Jul 29, 2024

I haven't forgotten about this, but it's a "work thing" and I've had other work priorities. Since so much has changed with the tests since I originally did this, I wondered if starting fresh might be easiest.

@MidhunSureshR
Copy link
Member

Closing because of the reasons mentioned in #11603 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants