diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index f0bf569a732e..7d82fcae2db2 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -369,7 +369,7 @@ $loading.removeClass('hidden'); this.model.sendNotificationForShare(shareType, shareWith, true).then(function(result) { - if (result.ocs.meta.status === 'ok') { + if (result.ocs.meta.message === null) { OC.Notification.showTemporary(t('core', 'Email notification was sent!')); $target.remove(); } else {