mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 04:20:38 +00:00
removed some old stuff and added getAttachmentsPath getter
This commit is contained in:
parent
c9d7470993
commit
1508ee9fd6
1 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,6 @@ import org.asamk.signal.storage.protocol.JsonIdentityKeyStore;
|
|||
import org.asamk.signal.storage.threads.ThreadInfo;
|
||||
import org.asamk.signal.util.IOUtils;
|
||||
import org.asamk.signal.util.Util;
|
||||
import org.asamk.signal.JsonAttachment;
|
||||
import org.signal.libsignal.metadata.InvalidMetadataMessageException;
|
||||
import org.signal.libsignal.metadata.InvalidMetadataVersionException;
|
||||
import org.signal.libsignal.metadata.ProtocolDuplicateMessageException;
|
||||
|
@ -145,7 +144,6 @@ public class Manager implements Signal {
|
|||
this.dataPath = this.settingsPath + "/data";
|
||||
this.attachmentsPath = this.settingsPath + "/attachments";
|
||||
this.avatarsPath = this.settingsPath + "/avatars";
|
||||
JsonAttachment.setAttachmentStoragePath(this.attachmentsPath);
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
|
@ -1466,8 +1464,8 @@ public class Manager implements Signal {
|
|||
return new File(attachmentsPath, attachmentId + "");
|
||||
}
|
||||
|
||||
public String getAttachmentFilePath(long attachmentId) {
|
||||
return attachmentsPath + File.separator + attachmentId;
|
||||
public String getAttachmentsPath() {
|
||||
return attachmentsPath;
|
||||
}
|
||||
|
||||
private File retrieveAttachment(SignalServiceAttachmentPointer pointer) throws IOException, InvalidMessageException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue