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

Preview emojis in chatbox #199

Merged
merged 1 commit into from
Mar 9, 2013

Conversation

mjtko
Copy link
Contributor

@mjtko mjtko commented Mar 9, 2013

Does what it says in the title. Adds a dependency on Gemoji. We should consider refactoring the emoticons plugin to revert it to dealing with emoticons other than emojis and move the emoji rendering to this plugin.

@coveralls
Copy link

Coverage decreased (-0.0%) when pulling c6ad98b on mjtko:feature/chatbox-emojis-preview into e3479c0 on kandanapp:master.

View Details

@gabceb
Copy link
Member

gabceb commented Mar 9, 2013

Have you tested this with Rails assets precompiling? According to the gemoji gem you need to set it up on the application.rb file. Im not familiar with them gem but thats what i read on their page.

@mjtko
Copy link
Contributor Author

mjtko commented Mar 9, 2013

Gemoji doesn't provide assets by default - rather you have to copy them into either public/ or app/assets/images/ or whatever manually. As we already (currently) have emojis in app/assets, I'm making use of the 'database' provided by Gemoji, but not using the images.

I think we should consider using the Gemoji gem for providing the images too in future, but that's out of scope of this PR IMHO.

@gabceb
Copy link
Member

gabceb commented Mar 9, 2013

Also note that without the refactoring of the emoticons the images provided by this gem will not be shown since plugin ares triggered in the order that they are added on the kandan file which means all emojis will be caught by the emoticons plugin. I am working on plugin chaining which will help with this but will cause worse things such as emojis shown twice (by the emoji plugin and the emoticons plugin)

@gabceb
Copy link
Member

gabceb commented Mar 9, 2013

Your comment answered my previous comment 👍

@mjtko
Copy link
Contributor Author

mjtko commented Mar 9, 2013

This plugin only handles displaying the emojis as previews in the chatbox, so doesn't expect or interfere with the activity rendering right now. Refactoring the emojis plugin to handle the emojis should be done at the same time as removing that capability from the emoticons plugin, so there shouldn't be a case where they interfere with each other.

@ghost ghost assigned gabceb Mar 9, 2013
gabceb added a commit that referenced this pull request Mar 9, 2013
@gabceb gabceb merged commit 7530273 into kandanapp:master Mar 9, 2013
@gabceb
Copy link
Member

gabceb commented Mar 9, 2013

Done! Could you open an issue for refactoring emoticons and assign it to me. Im on my phone and Github iPhone experience is less than ideal.

ar7em pushed a commit to ar7em/kandan that referenced this pull request Jun 9, 2013
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

Successfully merging this pull request may close these issues.

3 participants