Skip to content

Stop relying on group IDs stored in message-IDs - #2164

Merged
link2xt merged 4 commits into
masterfrom
adhoc-parent
Jan 23, 2021
Merged

link2xt merged 4 commits into
masterfrom
adhoc-parent

Conversation

@link2xt

@link2xt link2xt commented Jan 23, 2021

Copy link
Copy Markdown
Collaborator

Closes #1568

@link2xt
link2xt force-pushed the adhoc-parent branch 3 times, most recently from 47c0b6c to 5101138 Compare January 23, 2021 01:42
@link2xt
link2xt marked this pull request as ready for review January 23, 2021 01:53
@link2xt

link2xt commented Jan 23, 2021 •

Copy link
Copy Markdown
Collaborator Author
  • A Rust test would be nice to have, "receiving" two messages for separate groups and then a classic MUA reply to one of them.

I have removed all the code that extracts Group IDs from Message-IDs in the last commit, but have not changed Message-ID generation yet. It is planned for the next release, so users running older DC versions can still rely on group IDs being in classic MUA reply References and In-Reply-To.

@link2xt

link2xt commented Jan 23, 2021

Copy link
Copy Markdown
Collaborator Author

I added the test, this PR is finished, ready for review.

@link2xt
link2xt requested review from Hocuri, Jikstra and r10s and removed request for Hocuri January 23, 2021 15:47
Comment thread src/dc_receive_imf.rs Resolved
Comment thread src/dc_receive_imf.rs Resolved
Comment thread src/dc_receive_imf.rs Resolved
Comment thread src/dc_receive_imf.rs
Chat-Group-Name: foo\n\
Date: Sun, 22 Mar 2020 22:37:57 +0000\n\
\n\
hello foo\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines are really meant to end with \r\n instead of just \n, but I guess our parser is lenient... still

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from other tests. If we want to change this, then it makes sense to change in all places.

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.

Stop relying on group IDs stored in message-IDs

3 participants