The class takes into consideration the list of participants (array of Account ObservableObject), the list of messages (array of Message ObservableObjects) and the visibility.
BTW, the example on the repo should be slightly updated replacing the properties:
"uco-observable:displayName": "Best Friend Chat!!" --> uco-core:name outside of the uco-core:hasFacet array and
"drafting:visibility": "PRIVATE" --> boolean value False.
Fix #5 issue, I changed the FacetMessagethread class. The class doesn't generate a complex structure as illustrated in the message example:
https://github.com/casework/CASE-Examples/blob/master/examples/illustrations/message/message.json).
The class takes into consideration the list of participants (array of Account ObservableObject), the list of messages (array of Message ObservableObjects) and the visibility.
BTW, the example on the repo should be slightly updated replacing the properties: "uco-observable:displayName": "Best Friend Chat!!" --> uco-core:name outside of the uco-core:hasFacet array and "drafting:visibility": "PRIVATE" --> boolean value False.