mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
parent
ae39d6a085
commit
a54fc92c05
7 changed files with 30 additions and 27 deletions
|
@ -1510,7 +1510,8 @@ public class Manager implements Closeable {
|
|||
if (!(exception instanceof org.whispersystems.libsignal.UntrustedIdentityException)) {
|
||||
File cacheFile = null;
|
||||
try {
|
||||
cacheFile = getMessageCacheFile(envelope.getSourceE164().get(), now, envelope.getTimestamp());
|
||||
String source = envelope.getSourceE164().isPresent() ? envelope.getSourceE164().get() : "";
|
||||
cacheFile = getMessageCacheFile(source, now, envelope.getTimestamp());
|
||||
Files.delete(cacheFile.toPath());
|
||||
// Try to delete directory if empty
|
||||
new File(getMessageCachePath()).delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue