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

fix(imageUpload): fixes uploaded images being added to the wrong chat when changing during NSFW check #1559

Merged
merged 3 commits into from
Feb 21, 2022

Conversation

cmckelvy42
Copy link
Contributor

What this PR does 📖
assigns the address in the store for uploaded images to be the one from the time the upload is initiated, not the one at the time the file has finished processing.
Which issue(s) this PR fixes 🔨
Previously, changing chats while an image is in the NSFW check phase would cause it to get added to the wrong chat's files array. This fixes this.

Special notes for reviewers 🗒️

Additional comments 🎤
the store solution @josephmcg used for upload persists is a nice one that solves some problems I couldn't figure out how to work around, and investigating how his solution worked is what led me to finding this bug that would've affected both our solutions

@WanderingHogan WanderingHogan added the Ready for QA Ready for QA team to test, Devs approved. label Feb 18, 2022
@molimauro molimauro added Changes Requested Changes have been requested by Dev or QA, once the changes have been made, remove this label. and removed Ready for QA Ready for QA team to test, Devs approved. labels Feb 18, 2022
@molimauro
Copy link
Contributor

Can you add this line this.$parent.$data.showFilePreview = this.files.length > 0 in the recipient watcher (line 73)? This is needed because if you go from a chat with files to another with 0 files the chatbar corners remain sharp. Thanks!

@WanderingHogan WanderingHogan added Ready for QA Ready for QA team to test, Devs approved. and removed Changes Requested Changes have been requested by Dev or QA, once the changes have been made, remove this label. labels Feb 19, 2022
@stavares843 stavares843 merged commit 6aeea21 into Satellite-im:dev Feb 21, 2022
@stavares843 stavares843 removed the Ready for QA Ready for QA team to test, Devs approved. label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants