Ferwarded messages retain In-Reply-To of original messages. The fix was suggested by @Hocuri here: #2573 (comment)
In-Reply-To and References header are prioritized for chat assignment since merging of #2795, which is correct but exposes this bug with forwarded messages.
In addition to fix, it is needed to ensure that for messages with a quote dc_msg_get_quoted_msg returns NULL both on the sender and receiver side.
Tests for chat assignment and forwarded quote are obviously needed to ensure there is no regression.
Ferwarded messages retain
In-Reply-Toof original messages. The fix was suggested by @Hocuri here: #2573 (comment)In-Reply-ToandReferencesheader are prioritized for chat assignment since merging of #2795, which is correct but exposes this bug with forwarded messages.In addition to fix, it is needed to ensure that for messages with a quote
dc_msg_get_quoted_msgreturnsNULLboth on the sender and receiver side.Tests for chat assignment and forwarded quote are obviously needed to ensure there is no regression.