chatwoot-flutter-sdk icon indicating copy to clipboard operation
chatwoot-flutter-sdk copied to clipboard

Document existing architecture

Open pranavrajs opened this issue 2 years ago • 1 comments

Todo:

  • [x] Document the existing API calls in the SDK and the overall flow.
  • [x] Create a flow chart of the existing flow
  • [x] Update the flow based on missing pieces

pranavrajs avatar Apr 27 '22 08:04 pranavrajs

Document the existing API calls in the SDK and the overall flow.

  1. ChatwootChatDialog.show() opens the widget and will create a new contact.
  2. Sending a messsage will call action createMessage().
  3. Message received will call getContact() and getConversations().
  4. Opennig SDK with previous conversation will call getAllMessages() and getContact().
  5. updateContact() and updateMessage() actions is there but i think it is not used.

Create a flow chart of the existing flow

New conversation Screenshot 2022-05-09 at 11 28 13 AM

Previous conversation Screenshot 2022-05-09 at 11 38 55 AM

Update the flow based on missing pieces

After merging this https://github.com/chatwoot/chatwoot-flutter-sdk/pull/20 PR, the flow LGTM.

iamsivin avatar May 03 '22 03:05 iamsivin