Merge pull request #11560 from nextcloud/nmc/triggerOneEmailForNewShare

Triggering one email for newly created share.
This commit is contained in:
Andy Scherzinger 2023-06-07 22:09:51 +02:00 committed by GitHub
commit 86eb3d110a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
* @author David A. Velasco
* @author TSI-mc
* Copyright (C) 2015 ownCloud Inc.
* Copyright (C) 2021 TSI-mc
* Copyright (C) 2023 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
@ -131,7 +131,8 @@ public class CreateShareWithShareeOperation extends SyncOperation {
shareeName,
false,
sharePassword,
permissions
permissions,
noteMessage
);
operation.setGetShareDetails(true);
RemoteOperationResult result = operation.execute(client);
@ -144,7 +145,6 @@ public class CreateShareWithShareeOperation extends SyncOperation {
UpdateShareInfoOperation updateShareInfoOperation = new UpdateShareInfoOperation(share, getStorageManager());
updateShareInfoOperation.setExpirationDateInMillis(expirationDateInMillis);
updateShareInfoOperation.setHideFileDownload(hideFileDownload);
updateShareInfoOperation.setNote(noteMessage);
updateShareInfoOperation.setLabel(label);
//execute and save the result in database