Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect participants for reply drafts #1494

Open
iamdey opened this issue Jan 28, 2021 · 0 comments
Open

incorrect participants for reply drafts #1494

iamdey opened this issue Jan 28, 2021 · 0 comments

Comments

@iamdey
Copy link
Member

iamdey commented Jan 28, 2021

POST http://localhost:4000/api/v1/messages

{
  "message_id": "12ae1907-b88e-484d-988a-d5b63ac1ddfe",
  "subject": "Avec ma nouvelle caisse enregistreuse l'encaissement est un jeu\n d'enfant !",
  "body": "test",
  "participants": [
    {
      "address": "[email protected]",
      "contact_ids": ["6cc93d7f-b790-4237-bb65-c102c2140aee"],
      "label": "caisse",
      "protocol": "email",
      "type": "To"
    },
    {
      "address": "[email protected]",
      "contact_ids": ["d0a320c7-37af-4419-9bb3-149029da1f75"],
      "label": "Jean-michel nom",
      "protocol": "email",
      "type": "From"
    }
  ],
  "discussion_id": "4fbfdf1a38e26bcd466c8ae2d80103ac93cee8946eae5aab1f49e32a87e07630",
  "parent_id": "cf1eeb3b-5229-4846-8205-e90d344f08b0",
  "user_identities": ["3637b0d4-6d39-462e-949b-5087189250b3"]
}
GET http://localhost:4000/api/v2/messages/12ae1907-b88e-484d-988a-d5b63ac1ddfe

{
  "body": "test",
  "body_is_plain": true,
  "excerpt": "test",
  "date": "2021-01-28T07:40:00.970Z",
  "date_insert": "2021-01-28T07:40:00.970Z",
  "date_sort": "2021-01-28T07:40:00.970Z",
  "discussion_id": "4fbfdf1a38e26bcd466c8ae2d80103ac93cee8946eae5aab1f49e32a87e07630",
  "external_references": {
    "ancestors_ids": ["[email protected]"],
    "parent_id": "[email protected]"
  },
  "user_identities": ["3637b0d4-6d39-462e-949b-5087189250b3"],
  "importance_level": 0,
  "is_answered": false,
  "is_draft": true,
  "is_unread": false,
  "is_received": false,
  "message_id": "12ae1907-b88e-484d-988a-d5b63ac1ddfe",
  "parent_id": "cf1eeb3b-5229-4846-8205-e90d344f08b0",
  "participants": [
    {
      "address": "[email protected]",
      "contact_ids": ["6cc93d7f-b790-4237-bb65-c102c2140aee"],
      "label": "caisse",
      "protocol": "email",
      "type": "To"
    },
    {
      "address": "[email protected]",
      "contact_ids": ["d0a320c7-37af-4419-9bb3-149029da1f75"],
      "label": "Jean-michel nom",
      "protocol": "email",
      "type": "To"
    },
    {
      "address": "[email protected]",
      "contact_ids": ["d0a320c7-37af-4419-9bb3-149029da1f75"],
      "label": "Jean-michel nom",
      "protocol": "email",
      "type": "From"
    }
  ],
  "pi_message": { "transport": 0, "social": 66, "content": 0 },
  "privacy_features": {},
  "pi": { "comportment": 0, "context": 0, "technic": 0, "version": 0 },
  "subject": "Re: Avec ma nouvelle caisse enregistreuse l'encaissement est un jeu\n d'enfant !",
  "protocol": "email",
  "user_id": "65c9a607-ac49-4404-9423-3a03b20b9f33"
}

The participant [email protected] is duplicated : To and From

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant