mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Prune the content of deleted events completely
This commit is contained in:
parent
c849cc5c5d
commit
9d41508530
@ -86,9 +86,9 @@ internal class RedactionEventProcessor @Inject constructor() : EventInsertLivePr
|
||||
// }
|
||||
|
||||
val modified = unsignedData.copy(redactedEvent = redactionEvent)
|
||||
// I Commented the line below, it should not be empty while we lose all the previous info about
|
||||
// the redacted event
|
||||
// eventToPrune.content = ContentMapper.map(emptyMap())
|
||||
// Deleting the content of a thread message will result to delete the thread relation, however threads are now dynamic
|
||||
// so there is not much of a problem
|
||||
eventToPrune.content = ContentMapper.map(emptyMap())
|
||||
eventToPrune.unsignedData = MoshiProvider.providesMoshi().adapter(UnsignedData::class.java).toJson(modified)
|
||||
eventToPrune.decryptionResultJson = null
|
||||
eventToPrune.decryptionErrorCode = null
|
||||
|
Loading…
Reference in New Issue
Block a user