You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user