You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-21 07:42:09 +03:00
Appease the linter
This commit is contained in:
@ -989,7 +989,7 @@ class CreationGrouper {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventTiles = this.events.map((e, i) => {
|
const eventTiles = this.events.map((e) => {
|
||||||
// In order to prevent DateSeparators from appearing in the expanded form
|
// In order to prevent DateSeparators from appearing in the expanded form
|
||||||
// of EventListSummary, render each member event as if the previous
|
// of EventListSummary, render each member event as if the previous
|
||||||
// one was itself. This way, the timestamp of the previous event === the
|
// one was itself. This way, the timestamp of the previous event === the
|
||||||
@ -1098,10 +1098,8 @@ class RedactionGrouper {
|
|||||||
const senders = new Set();
|
const senders = new Set();
|
||||||
let eventTiles = this.events.map((e, i) => {
|
let eventTiles = this.events.map((e, i) => {
|
||||||
senders.add(e.sender);
|
senders.add(e.sender);
|
||||||
return panel._getTilesForEvent(
|
const prevEvent = i === 0 ? this.prevEvent : this.events[i - 1];
|
||||||
i === 0 ? this.prevEvent : this.events[i - 1],
|
return panel._getTilesForEvent(prevEvent, e, e === lastShownEvent, this.nextEvent, this.nextEventTile);
|
||||||
e, e === lastShownEvent,
|
|
||||||
this.nextEvent, this.nextEventTile);
|
|
||||||
}).reduce((a, b) => a.concat(b), []);
|
}).reduce((a, b) => a.concat(b), []);
|
||||||
|
|
||||||
if (eventTiles.length === 0) {
|
if (eventTiles.length === 0) {
|
||||||
|
Reference in New Issue
Block a user