This commit is contained in:
SessionHero01 2024-09-24 17:08:37 +10:00
parent 5c380bdbdf
commit 57c95ea7d6
No known key found for this signature in database

View File

@ -1012,9 +1012,9 @@ class GroupManagerV2Impl @Inject constructor(
override suspend fun setName(groupId: AccountId, newName: String): Unit = withContext(dispatcher) { override suspend fun setName(groupId: AccountId, newName: String): Unit = withContext(dispatcher) {
val adminKey = requireAdminAccess(groupId) val adminKey = requireAdminAccess(groupId)
configFactory.withGroupConfigsOrNull(groupId) { info, members, keys -> configFactory.getGroupInfoConfig(groupId)?.use { infoConfig ->
info.setName(newName) infoConfig.setName(newName)
configFactory.saveGroupConfigs(keys, info, members) configFactory.persist(infoConfig, SnodeAPI.nowWithOffset, forPublicKey = groupId.hexString)
} }
val groupDestination = Destination.ClosedGroup(groupId.hexString) val groupDestination = Destination.ClosedGroup(groupId.hexString)