Define the owner of a contact when the chat has been attributed

Hello,

When we accept a chat, the contact still has no owner. It should be assigned to the person who accepted the chat.