From 3e5bedba7912b81fa9838bf62b3564a726d57491 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 14 May 2019 13:24:06 +0300 Subject: [PATCH] Treat send attempt unsuccessful when there is a message. --- core/js/sharedialogshareelistview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {