-
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] 🍒 #3470
fix: self-deleting asset message timer [WPB-1807] 🍒 #3470
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3470 +/- ##
========================================
Coverage 44.57% 44.57%
========================================
Files 467 467
Lines 15777 15777
Branches 2654 2654
========================================
Hits 7032 7032
Misses 7988 7988
Partials 757 757
Continue to review full report in Codecov by Sentry.
|
…elf-deleting-asset-msg-timer-start-cherry-pick
Built wire-android-staging-compat-pr-3470.apk is available for download |
Built wire-android-dev-debug-pr-3470.apk is available for download |
…elf-deleting-asset-msg-timer-start-cherry-pick # Conflicts: # app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/item/RegularMessageItem.kt
|
Built wire-android-staging-compat-pr-3470.apk is available for download |
Built wire-android-dev-debug-pr-3470.apk is available for download |
This PR was manually cherry-picked based on #3465
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
.