mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 17:48:23 +00:00
refactor: start looking at how to incorporate the user config changes to the expiry message update times and where to read values from
This commit is contained in:
@@ -152,7 +152,7 @@ class BatchMessageReceiveJob(
|
||||
try {
|
||||
when (message) {
|
||||
is VisibleMessage -> {
|
||||
MessageReceiver.updateExpiryIfNeeded(message, proto, openGroupID)
|
||||
MessageReceiver.updateExpiryIfNeeded(message, proto, openGroupID, newLastSeen)
|
||||
val isUserBlindedSender =
|
||||
message.sender == serverPublicKey?.let {
|
||||
SodiumUtilities.blindedKeyPair(
|
||||
|
@@ -270,7 +270,7 @@ fun handleMessageRequestResponse(message: MessageRequestResponse) {
|
||||
}
|
||||
//endregion
|
||||
|
||||
fun MessageReceiver.updateExpiryIfNeeded(message: Message, proto: SignalServiceProtos.Content, openGroupID: String?) {
|
||||
fun MessageReceiver.updateExpiryIfNeeded(message: Message, proto: SignalServiceProtos.Content, openGroupID: String?, lastSeen: Long) {
|
||||
val storage = MessagingModuleConfiguration.shared.storage
|
||||
|
||||
val sentTime = message.sentTimestamp ?: throw MessageReceiver.Error.InvalidMessage
|
||||
|
Reference in New Issue
Block a user