From 379d19e2e0a7ae2ab21489ae7f1b7044049d103d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 10 May 2021 19:56:30 -0600 Subject: [PATCH] Lint --- src/components/structures/MessagePanel.js | 9 ++++----- test/components/structures/MessagePanel-test.js | 9 +++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 0c61dd759c..e5e0065be8 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -544,7 +544,7 @@ export default class MessagePanel extends React.Component { } if (!grouper) { const wantTile = this._shouldShowEvent(mxEv); - const isGrouped =false; + const isGrouped = false; if (wantTile) { // make sure we unpack the array returned by _getTilesForEvent, // otherwise react will auto-generate keys and we will end up @@ -972,7 +972,7 @@ class CreationGrouper { const EventListSummary = sdk.getComponent('views.elements.EventListSummary'); const panel = this.panel; const ret = []; - const isGrouped=true; + const isGrouped = true; const createEvent = this.createEvent; const lastShownEvent = this.lastShownEvent; @@ -1085,7 +1085,7 @@ class RedactionGrouper { const DateSeparator = sdk.getComponent('messages.DateSeparator'); const EventListSummary = sdk.getComponent('views.elements.EventListSummary'); - const isGrouped=true; + const isGrouped = true; const panel = this.panel; const ret = []; const lastShownEvent = this.lastShownEvent; @@ -1102,7 +1102,6 @@ class RedactionGrouper { ); const senders = new Set(); - let eventTiles = this.events.map((e, i) => { senders.add(e.sender); const prevEvent = i === 0 ? this.prevEvent : this.events[i - 1]; @@ -1186,7 +1185,7 @@ class MemberGrouper { const DateSeparator = sdk.getComponent('messages.DateSeparator'); const MemberEventListSummary = sdk.getComponent('views.elements.MemberEventListSummary'); - const isGrouped=true; + const isGrouped = true; const panel = this.panel; const lastShownEvent = this.lastShownEvent; const ret = []; diff --git a/test/components/structures/MessagePanel-test.js b/test/components/structures/MessagePanel-test.js index 42819235dd..dc70e3f7f6 100644 --- a/test/components/structures/MessagePanel-test.js +++ b/test/components/structures/MessagePanel-test.js @@ -94,7 +94,7 @@ describe('MessagePanel', function() { return events; } - //Just to avoid breaking Dateseparator tests that might run at 00hrs + // Just to avoid breaking Dateseparator tests that might run at 00hrs function mkOneDayEvents() { const events = []; const ts0 = Date.parse('09 May 2004 00:12:00 GMT'); @@ -264,7 +264,6 @@ describe('MessagePanel', function() { }), ]; } - function isReadMarkerVisible(rmContainer) { return rmContainer && rmContainer.children.length > 0; } @@ -453,7 +452,7 @@ describe('MessagePanel', function() { }); it('should render Date separators for the events', function () { - const events = mkOneDayEvents() + const events = mkOneDayEvents(); const res = mount(