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

Don't immediately send attachment on upload #4540

Closed
WesleyAC opened this issue Mar 17, 2021 · 3 comments · Fixed by #5474
Closed

Don't immediately send attachment on upload #4540

WesleyAC opened this issue Mar 17, 2021 · 3 comments · Fixed by #5474
Labels
a-compose/send Compose box, autocomplete, camera/upload, outbox, sending P1 high-priority

Comments

@WesleyAC
Copy link
Contributor

WesleyAC commented Mar 17, 2021

When a user uploads a attachment or image, it's immediately sent. Instead, we should change the behaviour to be more like the webapp: the input field should have the markdown for displaying the image inserted, but the user should be allowed to edit before sending. This will also allow people to add multiple attachments (see this CZO thread requesting this).

Related: #1903

@WesleyAC WesleyAC added the a-compose/send Compose box, autocomplete, camera/upload, outbox, sending label Mar 17, 2021
@WesleyAC WesleyAC changed the title Don't immediatly send attachment on upload Don't immediately send attachment on upload Mar 17, 2021
@vaibhavs2
Copy link
Contributor

vaibhavs2 commented Mar 24, 2021

can it be assigned to me :)

AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Apr 3, 2021
Previous functionality:
- On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that a user
may add more text if desired.
- Users could only attach single files using the attach file option.

This commit modifies handleFilesPicker (previously handleFilePicker) to
support picking multiple files. After picking multiple files the
corresponding data is passed to `insertAttachment` method of ComposeBox
where the content is uploaded one by one and the ComposeBox is updated
accordingly, note that dispatch to uploadFile no longer takes place now.

Fixes: zulip#4540
Fixes: zulip#2366
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Apr 28, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that a user
may add more text if desired.

This commit creates a new function `insertAttachment` that is utilized
in `ComposeMenu`. It performs the task of uploading the attachment as
well as updating the `ComposeBox` message accordingly.

Fixes: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Apr 29, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that a user
may add more text if desired.

This commit creates a new function `insertAttachment` that is utilized
in `ComposeMenu`. It performs the task of uploading the attachment as
well as updating the `ComposeBox` message accordingly.

Related: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Apr 29, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that a user
may add more text if desired.

This commit creates a new function `insertAttachment` that is utilized
in `ComposeMenu`. It performs the task of uploading the attachment as
well as updating the `ComposeBox` message accordingly.

Related: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Jun 17, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that a user
may add more text if desired.

This commit creates a new function `insertAttachment` that is utilized
in `ComposeMenu`. It performs the task of uploading the attachment as
well as updating the `ComposeBox` message accordingly.

Related: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Jun 17, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that
a user may add more text if desired.

This commit creates a new function `insertAttachment` that is
utilized in `ComposeMenu`. It performs the task of uploading the
attachment as well as updating the `ComposeBox` message accordingly.

Fixes part of zulip#4540 because images attached via image picker option
is still behaving as earlier, in the hopes of replacing
`react-native-image-picker` before fixing that.

Fixes-part-of: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Jun 17, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that
a user may add more text if desired.

This commit creates a new function `insertAttachment` that is
utilized in `ComposeMenu`. It performs the task of uploading the
attachment as well as updating the `ComposeBox` message accordingly.

Fixes part of zulip#4540 because behaviour of image picker option is
unchanged.

Fixes-part-of: zulip#4540
AkashDhiman added a commit to AkashDhiman/zulip-mobile that referenced this issue Jun 24, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that
a user may add more text if desired.

This commit creates a new function `insertAttachment` that is
utilized in `ComposeMenu`. It performs the task of uploading the
attachment as well as updating the `ComposeBox` message accordingly.

Fixes part of zulip#4540 because behaviour of image picker option is
unchanged.

Fixes-part-of: zulip#4540
gnprice pushed a commit to AkashDhiman/zulip-mobile that referenced this issue Jul 1, 2021
On pressing attach file from compose menu, attachment was directly
dispatched to outbox, they should go through compose box so that
a user may add more text if desired.

This commit creates a new function `insertAttachment` that is
utilized in `ComposeMenu`. It performs the task of uploading the
attachment as well as updating the `ComposeBox` message accordingly.

Fixes part of zulip#4540 because behaviour of image picker option is
unchanged.

Fixes-part-of: zulip#4540
@chrisbobbe
Copy link
Contributor

Also related: #2684

@chrisbobbe
Copy link
Contributor

We've had another report of this: https://chat.zulip.org/#narrow/stream/48-mobile/topic/Bug.20reports/near/1292530

Marking as P1.

chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this issue Aug 23, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this issue Aug 31, 2022
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this issue Jan 11, 2023
chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this issue Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-compose/send Compose box, autocomplete, camera/upload, outbox, sending P1 high-priority
Projects
None yet
3 participants