twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Modify timeline-messaging.service to allow the frontend to get multiple recipients in a thread

Open bosiraphael opened this issue 1 year ago • 2 comments

Scope & Context

At the moment we have only the sender of the last message who is displayed in the thread in the frontend. We want to be able to display all participants in the thread.

We also want to have all the messages but maybe we will do a second endpoint getMessagesByThreadId to get all the messages from a thread.

Technical inputs

Modify getTimelineThreadsFromPersonId and getTimelineThreadsFromCompanyId

Old:

  getTimelineThreadsFromPersonId(personId: "") {
    body
    numberOfMessagesInThread
    read
    receivedAt
    senderPictureUrl
    senderName
    subject
  }

New:

getTimelineThreadsFromPersonId(personId: "") {
    body
    numberOfMessagesInThread
    read
    receivedAt
    recipients {
        displayName
        pictureUrl
    } 
    subject
    messages {
        from
        subject
        body
        sentAt
    } 
  }

bosiraphael avatar Jan 05 '24 16:01 bosiraphael

@bosiraphael can i work on this ?

abdulqdaer-q avatar Jan 06 '24 10:01 abdulqdaer-q

Hello @abdulqdaer-q ! Thank you very much for your interest in the project. Unfortunately, this part of the codebase is still at the POC stage and we prefer to handle this with the core team for now. But feel free to take any issue labeled as good first issue which is not yet assigned to another contributor.

bosiraphael avatar Jan 08 '24 09:01 bosiraphael