-
Notifications
You must be signed in to change notification settings - Fork 191
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
Introduce per message timestamps as a configurable option. #2184
base: unstable
Are you sure you want to change the base?
Conversation
We should probably decide on just one of these options, either per message timestamp option or more frequent timestamp messages. I'd be in favor of just the per message timestamp option. I don't think this looks visually right either, its close to what Telegram is doing, but not sure i like how it looks visually. |
I was thinking the same thing: No need to have the timestamps both between messages and in the message bubbles. I'm just playing with ideas here, and not all will make sense in combination with each other. I changed the timestamp colour to |
d7f5ccb
to
4a6fae3
Compare
Modified to use a new definable colour, |
can you get a screenshot of what happens with this feature ON and a message without any text but just an attachment? |
@blib I'm not sure how to fix the case of the timestamp being omitted from bodiless messages containing only an attachment. This is an easy fix:
but because it creates a fake, non-printing body, unnecessary whitespace gets added to the message bubble. |
I've added a commit (a232eea7e5f9ceb38b3fa788d37b38ff71cf7613) that ensures that attachment-only messages now get properly timestamped, and addresses the concern above by keeping the additional whitespace to the minimum possible with this approach. |
5ed578c
to
00bc411
Compare
Rebased on |
@Bilb OK, I think the latest commit to this makes the feature pretty good now. With this latest change, the old-style date breaks are inserted between messages that span a date change. This combination of punctuating messages with date break captions, plus putting a timestamp on every individual message seems ideal to me. I hope you guys like the idea, too. |
c1b2ae0
to
c94fb8b
Compare
Implementing timestamps at the MessageContent level ensures that all messages receive a timestamp, regardless of whether they contain a body, images or other types of attachment.
I have now rebased on Is the feature still being considered for inclusion at this point? The commits in this PR have been left intact to show the progression. Obviously, if this were to be included, I would squash everything down to a single commit. |
Looking at this screenshot, I personally like this design as it is. However, are there any possibilities of showing the timestamp at the left or right of each message box, or would that have aesthetic or other issues? There's a fair amount of vacant space there, and having the timestamp in the lower right corner inside each message box does render the bottom of each message box void. |
The code of this patch has changed somewhat over time, but perhaps hasn't been rebased here. The screenshots are certainly not up to date. The current implementation wastes less space beneath the timestamp. Compare the messages above with this one: There's now more space above the timestamp, but that can be reduced by the developers if they adopt the timestamp feature. They could also elect to offer the choice of where to place the timestamp. Unfortunately, this PR is 6 months old now and still hasn't been merged. It remains open, however, so I find it hard to estimate its chance of inclusion at this point. |
Contributor checklist:
clearnet
branchyarn ready
run passes successfully (more about tests here)Description
This introduces per message timestamps as a configurable option. Enabling per message timestamps disables the display of date breaks between messages.
Confguration:
In action:
Tested on Linux and Windows 10.