twenty
twenty copied to clipboard
Modify timeline-messaging.service to allow the frontend to get multiple recipients in a thread
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 can i work on this ?
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.