Skip to content

Commit a72957c

Browse files
author
Tom James Holub
committed
pgpDecrypted.getString instead of getContent | #118
1 parent 253e50a commit a72957c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/js/PgpDecrypted.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public String[] getOtherErrors() {
6363
return getStrings("errors");
6464
}
6565

66-
public String getContent() {
66+
public String getString() {
6767
V8Object content = this.getAttributeAsObject("content");
6868
if(content == null) {
6969
return null;

FlowCrypt/src/main/java/com/flowcrypt/email/ui/loader/DecryptMessageAsyncTaskLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private String decryptText(Js js, String encryptedText) {
179179
if (encryptedText != null) {
180180
PgpDecrypted pgpDecrypted = js.crypto_message_decrypt(encryptedText);
181181
try {
182-
return pgpDecrypted != null ? pgpDecrypted.getContent() : "";
182+
return pgpDecrypted != null ? pgpDecrypted.getString() : "";
183183
} catch (Exception e) {
184184
e.printStackTrace();
185185
return encryptedText;

0 commit comments

Comments
 (0)