-
Notifications
You must be signed in to change notification settings - Fork 29
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: self-deleting asset message timer [WPB-1807] #3465
fix: self-deleting asset message timer [WPB-1807] #3465
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/candidate #3465 +/- ##
==================================================
Coverage 44.73% 44.73%
==================================================
Files 456 456
Lines 15454 15454
Branches 2584 2584
==================================================
Hits 6914 6914
Misses 7810 7810
Partials 730 730
Continue to review full report in Codecov by Sentry.
|
Built wire-android-staging-compat-pr-3465.apk is available for download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We apply the same delete logic to all messages.
What if delete timer is 1m and there is 2 minutes audio message??? User has no chance to listen the whole message ;P
It's the sender who decides to send a 2m long audio message knowing that he sends it as a 1m self-deleting message, it's not the app's fault 😄 |
…into fix/self-deleting-asset-msg-timer-start
|
Built wire-android-staging-compat-pr-3465.apk is available for download |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
For self-deleting message with asset, the timer doesn't start counting down until the user opens the asset.
Causes (Optional)
We had mixed old and new logic when it comes to starting the countdown. First we implemented self-deleting messages with asset in a way that it only starts counting down when the user actually opens the asset. It was changed some time ago to unify it with other platforms, so now it should start counting down at the moment the message is shown to the user, no matter if the user actually opens the asset or not. The problem is that part of the old logic was still in the code and because of that the timer was not being shown until the user opened the asset.
Solutions
Show the timer at the moment the message is being shown on the screen, so the logic is now the same for all types of self-deleting messages, no matter what content it has and no matter if the content has actually been opened or not.
Also, it includes new changes regarding deleting asset files when self-deleting message disappears (wireapp/kalium#3027).
Dependencies (Optional)
Needs releases with:
Testing
How to Test
Send a self-deleting message with asset and check if the timer is clearly visible from the first moment the message appeared on the screen.
Attachments (Optional)
self-deleting-remove-asset-before.mov
self-deleting-remove-asset-after.mov
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.