Allow redacting the collocutor's messages in DMs (again)

This reverts https://github.com/element-hq/element-x-ios/pull/2368 as the behavior didn't make it to any of our other clients.
This commit is contained in:
Stefan Ceriu
2026-01-30 14:27:45 +02:00
committed by Stefan Ceriu
parent fcee23d519
commit 3d56166da0

View File

@@ -159,6 +159,6 @@ struct TimelineItemMenuActionProvider {
}
private func canRedactItem(_ item: EventBasedTimelineItemProtocol) -> Bool {
item.isOutgoing ? canCurrentUserRedactSelf : canCurrentUserRedactOthers && !isDM
item.isOutgoing ? canCurrentUserRedactSelf : canCurrentUserRedactOthers
}
}