Factor apply_group_changes out of create_or_lookup_group

`apply_group_changes` is executed regardless of whether the group is
created via `create_or_lookup_group` or found via
`lookup_chat_by_reply`. This change removes the need for
`lookup_chat_by_reply` to return `None` when group ID exists in the
database to let `create_or_lookup_group` run. As a side effect of this
Delta Chat replies to ad hoc groups are now correctly assigned to
chats when there are multiple groups with the same group ID, such as
ad hoc groups with the same member lists.
This commit is contained in:
link2xt
2021-11-05 23:20:12 +00:00
parent 53d049e5f5
commit 1379f8a055
2 changed files with 264 additions and 201 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## Unreleased
### Fixes
- prioritize In-Reply-To: and References: headers over group IDs when assigning
messages to chats to fix incorrect assignment of Delta Chat replies to
classic email threads #2795
## 1.63.0
### API changes