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

fix: Order of messages if Sentbox is synced before Inbox #5813

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Jul 29, 2024

This affects me often because my devices go online/offline independently and i use both to send messages, so often i see my messages wrongly ordered around incoming messages.

@iequidoo
Copy link
Collaborator Author

iequidoo commented Oct 12, 2024

The test i added here isn't needed, there's test_old_message_5() already which does the same, but instead records the current (wrong) behaviour. Going to fix it then. EDIT: Done

@iequidoo iequidoo force-pushed the iequidoo/test_sync_sentbox_then_inbox branch from 4ea6d9d to ce4be1d Compare October 12, 2024 01:07
@iequidoo iequidoo changed the title test: Order of messages if Sentbox is synced before Inbox fix: Order of messages if Sentbox is synced before Inbox Oct 12, 2024
@iequidoo iequidoo changed the base branch from main to iequidoo/sort-rcvd-outgoing-msgs-down October 12, 2024 01:09
@iequidoo iequidoo marked this pull request as ready for review October 12, 2024 01:23
@iequidoo iequidoo requested a review from link2xt October 12, 2024 01:24
@iequidoo iequidoo force-pushed the iequidoo/sort-rcvd-outgoing-msgs-down branch 4 times, most recently from 3214eb6 to 6c01309 Compare October 14, 2024 23:49
Base automatically changed from iequidoo/sort-rcvd-outgoing-msgs-down to main October 15, 2024 00:22
This fixes a Gmail-like scenario when outgoing messages are saved to Sentbox as well and it is
fetched before Inbox by chance, by adding a new `OutRcvd` message state for received outgoing
messages so that they can mingle with fresh incoming ones and appear after them in chats. As for
`OutPending`, `OutDelivered` etc. messages, they are sent locally by the user and there's no need to
make them more noticeable even if they are newer.
@iequidoo iequidoo force-pushed the iequidoo/test_sync_sentbox_then_inbox branch from ce4be1d to da4a84e Compare October 15, 2024 00:27
@iequidoo
Copy link
Collaborator Author

Btw, i think it may be useful to display these outgoing received messages (i.e. from other MUAs/devices) somehow differently e.g. align them to the left as incoming ones. As they still have another brightness (even in Dark mode), it shouldn't be a problem to differ them from incoming messages. May be even useful for shared/community accounts, not sure. CC @adbenitez

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.

1 participant