Fix note-to-self not disappearing

This commit is contained in:
andrew 2023-09-14 19:13:27 +09:30
parent 0c9d050ef6
commit 14938d2cc0

View File

@ -415,7 +415,7 @@ object MessageSender {
storage.markAsSent(message.sentTimestamp!!, userPublicKey) storage.markAsSent(message.sentTimestamp!!, userPublicKey)
storage.markUnidentified(message.sentTimestamp!!, userPublicKey) storage.markUnidentified(message.sentTimestamp!!, userPublicKey)
// Start the disappearing messages timer if needed // Start the disappearing messages timer if needed
if (!isSyncMessage) { if (message.recipient == userPublicKey || !isSyncMessage) {
SSKEnvironment.shared.messageExpirationManager.startAnyExpiration(message.sentTimestamp!!, userPublicKey, System.currentTimeMillis()) SSKEnvironment.shared.messageExpirationManager.startAnyExpiration(message.sentTimestamp!!, userPublicKey, System.currentTimeMillis())
} }
} ?: run { } ?: run {