Skip to content
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

New visual style for receipts #135

Merged
merged 2 commits into from
Mar 9, 2022
Merged

New visual style for receipts #135

merged 2 commits into from
Mar 9, 2022

Conversation

boxdot
Copy link
Owner

@boxdot boxdot commented Feb 10, 2022

Show ○ (sent), ◉ (received), ● (delivered) unicode icons next to own
messages. This can be disabled by adding show_receipts = false to
the config file.

Also optimize the receipts handling code.

@boxdot boxdot changed the title New visual style for receipts. New visual style for receipts Feb 10, 2022
Show ○ (sent), ◉ (received), ● (delivered) unicode icons next to own
messages. This can be disabled by adding `show_receipts = false` to
the config file.

Also optimize the receipts handling code.
@boxdot boxdot force-pushed the boxdot/notifications-style branch from 8f732f2 to 0abbec5 Compare February 10, 2022 23:14
@cs-t1
Copy link
Contributor

cs-t1 commented Feb 11, 2022

Now that's a nice slick UI! Also the optimization was probably well deserved

@cs-t1
Copy link
Contributor

cs-t1 commented Feb 11, 2022

I just noticed the internal names for the different message delivery status have been mismatched, it's supposed to be Sent, Delivered, Read and not Sent, Received, Delivered. Seems I made the mistake a while back, can you fix it?

@cs-t1
Copy link
Contributor

cs-t1 commented Feb 12, 2022

Just thought that we assume in the receipt handling code that messages are stored in order of increasing timestamp even though this might not be the case on some occasions (because the timestamp is set by the sender, there is some jitter). This means we might not handle receipts correctly in these edge cases.

@boxdot
Copy link
Owner Author

boxdot commented Feb 12, 2022

Very good observation. Either we need to sort then and maintain the order, or maintain a lookup table.

@boxdot boxdot merged commit 82272fb into master Mar 9, 2022
@boxdot boxdot deleted the boxdot/notifications-style branch March 9, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants