cburschka / cadence

A strophe.js-powered XMPP web client for chatrooms.
6 stars 2 forks source link

`/save` stores too much, again. #445

Closed cburschka closed 7 years ago

cburschka commented 7 years ago

Ever since #417, both the text and html content of messages are stored in the markup. Unfortunately, visual.messagesToText blindly runs .text() on that markup, and ends up with both.

In fact, the function could probably be pared down a bit. The only messages with no plaintext body will be internal ones - and the links in those shouldn't be printed anyway.