sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.76k stars 1.58k forks source link

WebM support #634

Open trashken opened 8 years ago

trashken commented 8 years ago

Any quick way to add WebM support similar to jpg and gif?

vwbusguy commented 8 years ago

There's an upload filter: https://github.com/sdelements/lets-chat/wiki/Files

vwbusguy commented 8 years ago

If you mean to embed in the chat, you could update the imagePattern here: https://github.com/sdelements/lets-chat/blob/master/media/js/util/message.js , line 139.

trashken commented 8 years ago

Yes. Embed like when you paste an image link. Where do i add it in message.js?

vwbusguy commented 8 years ago

I mentioned above, line 139. Specifically, in this part: (jpe?g|png|gif). If you test it out and it works, you could submit it here as a pull request so others will have that functionality as well.