Merge pull request #3606 from matrix-org/travis/edit-history

Use a ternary operator instead of relying on AND semantics in EditHistoryDialog
This commit is contained in:
Travis Ralston 2019-11-11 08:24:07 -07:00 committed by GitHub
commit df1d5055c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ export default class MessageEditHistoryDialog extends React.PureComponent {
nodes.push((
<EditHistoryMessage
key={e.getId()}
previousEdit={!isBaseEvent && allEvents[i + 1]}
previousEdit={!isBaseEvent ? allEvents[i + 1] : null}
isBaseEvent={isBaseEvent}
mxEvent={e}
isTwelveHour={this.state.isTwelveHour}