Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guard: stop attachment during audio record #5255

Closed
wants to merge 2 commits into from
Closed

Add guard: stop attachment during audio record #5255

wants to merge 2 commits into from

Conversation

martineizayaga
Copy link

@martineizayaga martineizayaga commented May 12, 2021

Fixes #5205

Fixes an issue where an audio recording would stop and be lost if a file was attached during the recording.

A toast is sent instead and the audio recording keeps recording.

First time contributor checklist:

Contributor checklist:

Description

Please write a summary of your test approach:

  • What kind of manual testing did you do?
    • Started an audio recording in a conversation
    • Clicked the "+" add attachment button.
    • Verified that the toast appeared.
  • Did you write any new tests?
    • I did not. How can I write UI tests?
  • What operating systems did you test with? (please use specific versions: http://whatsmyos.com/)
    • OS X 10.15.7
  • What other devices did you test with? (other Desktop devices, Android, Android Simulator, iOS, iOS Simulator)
    • I don't have any other Desktop devices.

Fixes #5205

Sends a toast when the user clicks the "+" attach file during an audio
recording. The file chooser doesn't appear anymore.

The toast may overlap the existing toast that is sent at the beginning of the
audio recording.
@hiqua
Copy link
Contributor

hiqua commented May 13, 2021

You don't need to care about translations, they are handled separately via https://www.transifex.com/projects/p/signal-desktop.

@@ -337,6 +337,9 @@ Whisper.AlreadyRequestedToJoinToast = Whisper.ToastView.extend({
template: () => window.i18n('GroupV2--join--already-awaiting-approval'),
});

Whisper.UnableToAttachFileWhileRecording = Whisper.ToastView.extend({
template: () => window.i18n('unableToAttachFileWhileRecording'),

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is broken.

@stale
Copy link

stale bot commented Feb 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 1, 2022
@josh-signal josh-signal closed this Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Voice recording lost when attachment added to a message
4 participants