check if we are writing a message
use body instead of div.body
bugfix