fix crash when user use Undo after sending text message
Merge pull request #511 from alr/develop

fix crash when user shakes-to-undo after sending text message. close #508