Skip to content

Commit

Permalink
Treat send attempt unsuccessful when there is a message.
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed May 14, 2019
1 parent 24e0e79 commit 3e5bedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/js/sharedialogshareelistview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3e5bedb

Please sign in to comment.