Tweak sent marker code style
This commit is contained in:
parent
51ece182e8
commit
32f737e1ba
1 changed files with 6 additions and 4 deletions
|
@ -614,10 +614,12 @@ export default class MessagePanel extends React.Component {
|
||||||
|
|
||||||
// This is a bit nuanced, but if our next event is hidden but a future event is not
|
// This is a bit nuanced, but if our next event is hidden but a future event is not
|
||||||
// hidden then we're not the last successful.
|
// hidden then we're not the last successful.
|
||||||
if (nextEventWithTile) { // avoid length limit by wrapping in an if
|
if (
|
||||||
if (isSentState(nextEventWithTile.getAssociatedStatus()) && nextEventWithTile !== nextEvent) {
|
nextEventWithTile &&
|
||||||
isLastSuccessful = false;
|
nextEventWithTile !== nextEvent &&
|
||||||
}
|
isSentState(nextEventWithTile.getAssociatedStatus())
|
||||||
|
) {
|
||||||
|
isLastSuccessful = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We only want to consider "last successful" if the event is sent by us, otherwise of course
|
// We only want to consider "last successful" if the event is sent by us, otherwise of course
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue