소스 검색

Triggering one email for newly created share.

A117870935 2 년 전
부모
커밋
4bce2d3e34
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/src/main/java/com/owncloud/android/operations/CreateShareWithShareeOperation.java

+ 3 - 3
app/src/main/java/com/owncloud/android/operations/CreateShareWithShareeOperation.java

@@ -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