-
Notifications
You must be signed in to change notification settings - Fork 178
Fix/message deletion issues #1697
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
Conversation
… as only the labels change
Message view hides reactions completely if the message is marked as deleted All messages can now show the 'Delete' long press option Community messages should be removed completely not marked as deleted
This reverts commit 711e31a.
…ithout using 'marked as deleted' messages
…tead refresh the sarch on resume
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.
LGTM
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.
All good.
| } | ||
| } | ||
|
|
||
| public @Nullable MessageRecord getNonDeletedMessageForTimestamp(long timestamp) { |
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.
Isn't a non-deleted message just a message? Perhaps getMessageForTimestamp?
Ah, we now have messages with a 'deleted' type in the database.... that's a kinda odd way to go about things, but another way you could think of it is that the message is kinda in the "Recycle Bin" / "Trash" whatever you want to call it, so could potentially be recovered if required (but we never do and just clean that stuff out).
So okay, I guess...
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.
Yeah a message can be completely gone or marked as deleted. It still exists in the db and shows up as a special case message with the bin icon and a label like 'This message was deleted for everyone'
SES-2817 - Making sure the deletion is available in the app bar menu in all cases as the deletion logic is now handled in the VM
SES-2811 - Making sure we do not attempt to send messages marked as deleted
SES-2818 - Updating the logic obtaining the 'lastMessage' of a thread, taking into account whether they were marked as deleted or not
SES-2464 - Changed the logic when finishing a conversation activity from a deleted thread. It now calls finish again but the home screen will refresh the search on resume if the search is visible