Fix redacted media thread showing "message removed" for every media item.

This commit is contained in:
N-Pex 2024-07-11 15:52:45 +02:00
parent 6a00a334b5
commit 4c8bd07e8a
7 changed files with 27 additions and 21 deletions

View file

@ -279,6 +279,15 @@ export default {
return false;
},
redactedBySomeoneElse(event) {
if (!event.isRedacted()) return false;
const redactionEvent = event.getUnsigned().redacted_because;
if (redactionEvent) {
return redactionEvent.sender !== this.$matrix.currentUserId;
}
return false;
},
formatTimeAgo(time) {
const date = new Date();
date.setTime(time);