2

I have been working on adding a few small UI features to the create-daml-app project (https://github.com/digital-asset/daml/tree/ba27ea9af4f39a9a3f307384e05f4bf540101f03/templates/create-daml-app). Specifically, I have added the direct messaging feature from the docs (https://docs.daml.com/getting-started/first-feature.html). The description there is excellent and it works well. By default, the messages are displayed in chronological order (first-sent to last-sent) and I would like to display them in reverse chronological order (last-sent to first-sent). Can someone help me do this?

Thank you.

Quantifier
  • 135
  • 1
  • 8

1 Answers1

2

Replace messagesResult.contracts with messagesResult.contracts.reverse().

paolostyle
  • 1,849
  • 14
  • 17
  • Thanks for the response! This is what I was trying at first and I got the error: "Property 'reverse' does not exist on type 'readonly CreateEvent – Quantifier May 20 '20 at 23:30