correct closed group disappearing message type

pull/941/head
ryanzhao 2 years ago
parent 75856ff5c0
commit 9e08ab308b

@ -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)
} }

Loading…
Cancel
Save