@@ -128,16 +128,24 @@ class MessageRequestResponseHandler @Inject constructor(
128
128
moveConversation(fromThreadId = blindedThreadId, toThreadId = threadId)
129
129
}
130
130
131
- // If we ever have any blinded conversations with this sender, we should make
132
- // sure we have set "approved" to true for them, because when we started the blinded
133
- // conversation, we didn't know their real standard addresses, so we didn't say
134
- // we have approved them, but now that we do, we need to approve them.
135
- if (existingBlindedThreadIDs.isNotEmpty()) {
136
- configFactory.withMutableUserConfigs { configs ->
131
+ configFactory.withMutableUserConfigs { configs ->
132
+ // If we ever have any blinded conversations with this sender, we should make
133
+ // sure we have set "approved" to true for them, because when we started the blinded
134
+ // conversation, we didn't know their real standard addresses, so we didn't say
135
+ // we have approved them, but now that we do, we need to approve them.
136
+ if (existingBlindedThreadIDs.isNotEmpty()) {
137
137
configs.contacts.updateContact(messageSender.address) {
138
138
approved = true
139
139
}
140
140
}
141
+
142
+ // Also remove all blinded contacts
143
+ for (address in blindedConversationAddresses) {
144
+ configs.contacts.eraseBlinded(
145
+ communityServerUrl = address.serverUrl,
146
+ blindedId = address.blindedId.address
147
+ )
148
+ }
141
149
}
142
150
}
143
151
0 commit comments