|
|
@ -189,7 +189,7 @@ class ThreadDisappearingMessagesViewModel: SessionTableViewModel<ThreadDisappear
|
|
|
|
)
|
|
|
|
)
|
|
|
|
].appending(
|
|
|
|
].appending(
|
|
|
|
contentsOf: DisappearingMessagesConfiguration
|
|
|
|
contentsOf: DisappearingMessagesConfiguration
|
|
|
|
.validDurationsSeconds(.disappearAfterRead)
|
|
|
|
.validDurationsSeconds(.disappearAfterSend)
|
|
|
|
.map { duration in
|
|
|
|
.map { duration in
|
|
|
|
let title: String = duration.formatted(format: .long)
|
|
|
|
let title: String = duration.formatted(format: .long)
|
|
|
|
|
|
|
|
|
|
|
@ -204,7 +204,7 @@ class ThreadDisappearingMessagesViewModel: SessionTableViewModel<ThreadDisappear
|
|
|
|
.with(
|
|
|
|
.with(
|
|
|
|
isEnabled: true,
|
|
|
|
isEnabled: true,
|
|
|
|
durationSeconds: duration,
|
|
|
|
durationSeconds: duration,
|
|
|
|
type: .disappearAfterRead
|
|
|
|
type: .disappearAfterSend
|
|
|
|
)
|
|
|
|
)
|
|
|
|
self?.currentSelection.send(updatedConfig)
|
|
|
|
self?.currentSelection.send(updatedConfig)
|
|
|
|
}
|
|
|
|
}
|
|
|
|