fix: compile issues

This commit is contained in:
0x330a 2023-07-25 17:15:54 +10:00
parent 6bd970c869
commit 57d43270a8
2 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,6 @@ import org.session.libsession.messaging.messages.control.ExpirationTimerUpdate
import org.session.libsession.messaging.messages.control.MessageRequestResponse
import org.session.libsession.messaging.messages.control.SharedConfigurationMessage
import org.session.libsession.messaging.messages.control.UnsendRequest
import org.session.libsession.messaging.messages.control.UnsendRequest
import org.session.libsession.messaging.messages.visible.LinkPreview
import org.session.libsession.messaging.messages.visible.Quote
import org.session.libsession.messaging.messages.visible.VisibleMessage

View File

@ -272,6 +272,7 @@ fun handleMessageRequestResponse(message: MessageRequestResponse) {
fun MessageReceiver.updateExpiryIfNeeded(message: Message, proto: SignalServiceProtos.Content, openGroupID: String?) {
val storage = MessagingModuleConfiguration.shared.storage
val sentTime = message.sentTimestamp ?: throw MessageReceiver.Error.InvalidMessage
if (!proto.hasLastDisappearingMessageChangeTimestamp()) return
val threadID = storage.getThreadIdFor(message.sender!!, message.groupPublicKey, openGroupID, false)