Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to send Custom Attachments #31

Closed
nosmirck opened this issue Apr 15, 2020 · 1 comment
Closed

Ability to send Custom Attachments #31

nosmirck opened this issue Apr 15, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nosmirck
Copy link
Contributor

We would like the ability to send custom attachment with custom payload

Example:

For the MessageInput Widget we would need to add customAttachmentActions which is a List of AttachmentActions that would appear alongside the normal attachment button (or maybe provide extra options to customize where it goes, either within the same attachments options or separate with a custom icon, right side, below/above the input box, etc)

{
  type: 'myinfo',
  payload: 
  {
    email: 'myemail@email.com',
    phoneNumber: '555-1234567'
    address: '123 My Avenue East, My City, AA, My Country, P0ST4L'
  }
}

or something like the following attachment:

{
  type: 'mytodo',
  payload:
  {
    title: 'groceries'
    items:
    [
      {
        name: 'pasta',
        completed: 'false'
      },
      {
        name: 'tomatoes',
        completed: 'true'
      }
    ]
}

Note: the actual custom object for attachment can be configured as you guys think is best, this is just an example, I used payload to describe the custom object I'm sending/receiving in my chat.

The idea here is that we can build custom messaging apps, for instance, a chat for groceries apps where you can keep your "to do" list of groceries and send it to your friend and renders a preview in the messages window.

@imtoori imtoori self-assigned this Apr 16, 2020
@imtoori imtoori added the enhancement New feature or request label Apr 16, 2020
@imtoori
Copy link
Contributor

imtoori commented Apr 28, 2020

#43
@nosmirck Could you tell me what do you think of this solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants