appId: ${APP_ID}
onFlowStart:
  - runScript: ../scripts/setChatRole.js
---
- clearState
- runFlow: ../../../shared/launch-app.yml
- runScript: ../scripts/getTime.js

- runFlow:
    when:
      true: ${output.IS_SENDER}
    file: ../send-message-flow.yml

- runFlow:
    when:
      true: ${!output.IS_SENDER}
    file: ../receive-message-flow.yml
