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

Save/load message color #36

Open
sindresorhus opened this issue Oct 10, 2011 · 0 comments
Open

Save/load message color #36

sindresorhus opened this issue Oct 10, 2011 · 0 comments

Comments

@sindresorhus
Copy link
Contributor

The .sendColor property is useful for distinguishing different types of messages.
Currently I'm changing the .sendColor before sending a message depending on what kind of message it is.

The problem is that I want the conversation to be persistent, so i save and load the conversation, but the .sendColor is not persisted.

What I would like is the that the .getAllMessages() method returned and array like this:

[
    {
        index: 0,
        send: 'dsfdsf',
        sendColor: 'Purple',
        selectedColor: 'Blue'
    },
    {
        index: 1,
        recieve: 'dsfdsf',
        recieveColor: 'Gray',
        selectedColor: 'Blue'
    }
]

And the .loadMessages() would accept an array like this, and apply the colors.

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

No branches or pull requests

1 participant