mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
When accepting a chat, its members are promoted to `Origin::CreateChat`, but for groups it makes sense to use lower origin because users don't always check all members before accepting a chat and may not want to have the group members mixed with existing contacts. `IncomingTo` fits here by its definition: "additional To:'s of incoming message of known sender", i.e. we assume that the sender of some message is known to the user. This way we can show contacts coming from groups in the bottom of contact list, maybe even add some separator later. It makes sense not to hide such contacts completely, otherwise if the user remembers the contact name, but not the chat it's a member of, it would be difficult to find the contact.