Log a warning if the event content is not pruned

This commit is contained in:
Florian Renaud 2022-11-25 10:00:05 +01:00
parent 2477632e2b
commit 5a43b76488
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ internal class RedactionEventProcessor @Inject constructor() : EventInsertLivePr
handleTimelineThreadSummaryIfNeeded(realm, eventToPrune, isLocalEcho) handleTimelineThreadSummaryIfNeeded(realm, eventToPrune, isLocalEcho)
} }
else -> {
Timber.w("Not pruning event (type $typeToPrune)")
}
} }
if (typeToPrune == EventType.STATE_ROOM_MEMBER && stateKey != null) { if (typeToPrune == EventType.STATE_ROOM_MEMBER && stateKey != null) {
TimelineEventEntity.findWithSenderMembershipEvent(realm, eventToPrune.eventId).forEach { TimelineEventEntity.findWithSenderMembershipEvent(realm, eventToPrune.eventId).forEach {