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

refactor: Remove marknoticed_chat_if_older_than() #6366

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

iequidoo
Copy link
Collaborator

It was called from receive_imf when an outgoing message is received. But Imap::fetch_new_messages() already calls chat::mark_old_messages_as_noticed() which does the job better (per-message).

It was called from `receive_imf` when an outgoing message is received. But
`Imap::fetch_new_messages()` already calls `chat::mark_old_messages_as_noticed()` which does the job
better (per-message).
@iequidoo iequidoo marked this pull request as ready for review December 24, 2024 03:03
@iequidoo iequidoo requested a review from link2xt December 24, 2024 03:03
@link2xt
Copy link
Collaborator

link2xt commented Dec 24, 2024

marknoticed_chat_if_older_than was introduced in 2020 in c2b222e without a test. This was about generating DC_EVENT_MSGS_NOTICED

mark_old_messages_as_noticed was added later in a6441d7
This function also emits DC_EVENT_MSGS_NOTICED and the test introduced in that commit did not break, so LGTM.

@iequidoo iequidoo merged commit 22bc756 into main Dec 24, 2024
37 checks passed
@iequidoo iequidoo deleted the iequidoo/rm-marknoticed_chat_if_older_than branch December 24, 2024 16:03
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