appId: ${APP_ID}
onFlowStart:
  # Need to fix script not making second request.
  - runScript: ../scripts/setChatRole.js
# onFlowComplete:
#   - runFlow: ../../shared/clear-state.yml
---
- clearState
- runFlow: ../../../shared/launch-app.yml
- runScript: ../scripts/getTime.js

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

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