ReplyWidgetVisual: Use hasContent instead of hasBeenModified for isEmpty

Change-Id: I093a4b68573809e5222db01aead3ce00ed9a87ae
This commit is contained in:
Ed Sanders 2020-04-29 16:30:57 +01:00
parent 922443f68f
commit 75da1e0b3a

View file

@ -49,7 +49,7 @@ ReplyWidgetVisual.prototype.clear = function () {
ReplyWidgetVisual.prototype.isEmpty = function () {
var surface = this.replyBodyWidget.target.getSurface();
return !surface || !surface.getModel().hasBeenModified();
return !( surface && surface.getModel().getDocument().data.hasContent() );
};
ReplyWidgetVisual.prototype.getMode = function () {