Skip to content

Commit e7fa85a

Browse files
committed
msglist [nfc]: Tighten render method slightly
This method sure is a lot shorter now that all the "stay on one page" logic has been factored out! Celebrate by tightening a bit of formatting to make it easier still to take in the whole thing at once.
1 parent 6e5b5eb commit e7fa85a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/webview/MessageList.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,7 @@ class MessageListInner extends React.Component<Props> {
174174
_,
175175
} = this.props;
176176
const contentHtml = messageListElementsForShownMessages
177-
.map(element =>
178-
messageListElementHtml({
179-
backgroundData,
180-
element,
181-
_,
182-
}),
183-
)
177+
.map(element => messageListElementHtml({ backgroundData, element, _ }))
184178
.join('');
185179
const { auth, theme } = backgroundData;
186180
const html: string = getHtml(

0 commit comments

Comments
 (0)