Fix redacted media thread showing "message removed" for every media item.
This commit is contained in:
parent
6a00a334b5
commit
4c8bd07e8a
7 changed files with 27 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue