mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 18:13:38 +00:00
Simplify
This commit is contained in:
parent
8b320bb0ce
commit
371d06d6b5
@ -160,14 +160,13 @@ class ExpirationSettingsViewModel(
|
||||
val expiryChangeTimestampMs = SnodeAPI.nowWithOffset
|
||||
storage.setExpirationConfiguration(ExpirationConfiguration(threadId, mode, expiryChangeTimestampMs))
|
||||
|
||||
ExpirationTimerUpdate(mode.expirySeconds.toInt()).apply {
|
||||
val message = ExpirationTimerUpdate(mode.expirySeconds.toInt()).apply {
|
||||
sender = textSecurePreferences.getLocalNumber()
|
||||
recipient = address.serialize()
|
||||
sentTimestamp = expiryChangeTimestampMs
|
||||
}.also { message ->
|
||||
messageExpirationManager.setExpirationTimer(message, mode)
|
||||
MessageSender.send(message, address)
|
||||
}
|
||||
messageExpirationManager.setExpirationTimer(message, mode)
|
||||
MessageSender.send(message, address)
|
||||
|
||||
ConfigurationMessageUtilities.forceSyncConfigurationNowIfNeeded(application)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user