|
|
|
@ -128,7 +128,6 @@ class ThreadSettingsViewModel: SessionTableViewModel<ThreadSettingsViewModel.Nav
|
|
|
|
|
self?.threadVariant == .contact,
|
|
|
|
|
let threadId: String = self?.threadId,
|
|
|
|
|
let editedDisplayName: String = self?.editedDisplayName
|
|
|
|
|
|
|
|
|
|
else { return }
|
|
|
|
|
|
|
|
|
|
let updatedNickname: String = editedDisplayName
|
|
|
|
@ -183,7 +182,7 @@ class ThreadSettingsViewModel: SessionTableViewModel<ThreadSettingsViewModel.Nav
|
|
|
|
|
/// fetch (after the ones in `ValueConcurrentObserver.asyncStart`/`ValueConcurrentObserver.syncStart`)
|
|
|
|
|
/// just in case the database has changed between the two reads - unfortunately it doesn't look like there is a way to prevent this
|
|
|
|
|
private lazy var _observableSettingsData: ObservableData = ValueObservation
|
|
|
|
|
.trackingConstantRegion { [weak self, dependencies, threadId = self.threadId, threadVariant = self.threadVariant] db -> [SectionModel] in
|
|
|
|
|
.trackingConstantRegion { [weak self, dependencies, threadId = self.threadId, threadVariant = self.threadVariant] db -> [SectionModel] in
|
|
|
|
|
let userPublicKey: String = getUserHexEncodedPublicKey(db, dependencies: dependencies)
|
|
|
|
|
let maybeThreadViewModel: SessionThreadViewModel? = try SessionThreadViewModel
|
|
|
|
|
.conversationSettingsQuery(threadId: threadId, userPublicKey: userPublicKey)
|
|
|
|
|