Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fa54ca6

Browse files
committed
Appease the linter
1 parent 026aa6f commit fa54ca6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/structures/MessagePanel.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ class CreationGrouper {
989989
));
990990
}
991991

992-
const eventTiles = this.events.map((e, i) => {
992+
const eventTiles = this.events.map((e) => {
993993
// In order to prevent DateSeparators from appearing in the expanded form
994994
// of EventListSummary, render each member event as if the previous
995995
// one was itself. This way, the timestamp of the previous event === the
@@ -1098,10 +1098,8 @@ class RedactionGrouper {
10981098
const senders = new Set();
10991099
let eventTiles = this.events.map((e, i) => {
11001100
senders.add(e.sender);
1101-
return panel._getTilesForEvent(
1102-
i === 0 ? this.prevEvent : this.events[i - 1],
1103-
e, e === lastShownEvent,
1104-
this.nextEvent, this.nextEventTile);
1101+
const prevEvent = i === 0 ? this.prevEvent : this.events[i - 1];
1102+
return panel._getTilesForEvent(prevEvent, e, e === lastShownEvent, this.nextEvent, this.nextEventTile);
11051103
}).reduce((a, b) => a.concat(b), []);
11061104

11071105
if (eventTiles.length === 0) {

0 commit comments

Comments
 (0)