-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Add ability to mark messages as unread #685
Comments
Is there a possibility to "sponsor" this issue ? |
@lImbus you're welcome to submit pull requests if that's what you mean :) |
as a matter of fact, I have already started implementing it (forked and pushed, branch MarkUnread-Issue685). I do not know much about Android, but it compiles :) |
Would be awesome to have this feature added to Textsecure. To me the patch by limbus (lImbus@376b228) looks rather unintrusive and straightforward. Any objections by @moxie or @mcgintry against merging it? @lImbus, any reason why didn't you add this as a pull request to Textsecure yet? |
@mejo- The reason I did not pull request this is that I can only confirm that it compiles. I failed to verify the functionality because I failed to register my second mobile phone with Textsecure. Then suddenly, the weekend was over :/ |
@lImbus If you would submit a pull request I would help you testing/debugging it |
limbus, I just realized that you patch would set the whole thread as unread, which seems useless or at least an uncommon feature to me. I'll try to develop an own patch fixing that, test it and provide a pull request. |
It seems to me like textsecure doesn't store per-message read-/unread status. At least that's my assumption after a first look into the code. I only found functions that return/modify the READ bit for threads in the textsecure database, nothing that indicated such a value for messages. It would be awesome to have some documentation about the database schema of textsecure DB. Are any docs available? @agrajaghh, maybe you can help me here? |
Yes it does. Check MmsSmsDatabase.getUnread() and PushDatabase.getPending() ... |
@mejo- I don't know of any DB documentation, but you can get the db files with adb and just look into them. But do we really want to mark single messages as unread? Isn't the purpose to look at a whole thread again to answer it later? I guess marking the whole therad as unread is much easier, no? |
@agrajaghh Marking the whole thread unread will screw up any unread counter, because they are counting messages. I'd vote for just marking the last message in a thread as unread.. @mejo- The MmsSmsDatabase has a "READ" attribute... |
@tinloaf okay, didn't know that. So marking the last one is sounds like a good idea |
@agrajaghh @tinloaf The message-specific implementation is favorable because you can jump to the first unread message upon opening the thread. This is very useful in group conversations which have been going on without all the members regularily checking their Inbox. |
I would prefer to mark single messages as unread as well. And I would suggest to add the option to ContextMenu (with selected message) instead of default Thread Menu. |
No, marking the messages read could not be enough. In fact, the thread has its own read-flag, you should set both to zero. I wonder why that is though... |
After some further tests I don't see a usecase for marking individual messages as unread anymore. With current textsecure design, there's no UI-level indicator for individual unread messages anyway. All you see is a count of unread messages and the highlighted thread with unread message(s). So if tinloaf is right and marking a whole thread as unread results in screwed up count of unread messages, then the following would be the best approach in my eyes:
If you agree with that then I would try to implement it and prepare a pull request within the next days. Sorry for possibly dump questions. The textsecure codebase is pretty new to me. |
@mejo- I don't think this is the best approach. If you quickly check in on a (group) conversation with a lot of new messages, but don't have the time to read them all, it's certainly better to be able to mark everything from a certain message on as unread. This may not be implemented yet, but to future-proof your PR the behaviour for normal unread messages and messages which have manually marked unread should be identical. This is not possible if you only mark the last message of a thread or the whole thread unread. I prefer the variant where only one message is marked unread, because it improves the UX for more usecases.
|
Hi All, any progress on this? It's been almost a year. ;-) |
I'm skeptical that we want to do this. I think this use case should be covered by inbox/archive when we do that instead. |
Seems like a "reminder" capability is the real desire here and the inbox idea lends itself easily to that. |
Maybe it is just me, but I don't use the archive function at all. My usecase for unread messages would be the same as I use it for emails. I read the message but don't have time to answer immediately so I would like to mark the Thread/Message (I don't care which) as unread to later answer it. I hope this will be added to Signal as for me it is a fundamental feature which is still missing. |
I would love to see this "Mark as unread" feature, either thread or individual message. |
GitHub Issue Cleanup: |
This feature request is being discussed and tracked here. |
That's something that's available in the AOSP Text Messaging app but is missing from TSM for Android.
The text was updated successfully, but these errors were encountered: