mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge pull request #5741 from matrix-org/jryans/sent-marker-style
Tweak sent marker code style
This commit is contained in:
commit
33d0d902f5
@ -614,11 +614,13 @@ 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 &&
|
||||||
|
nextEventWithTile !== nextEvent &&
|
||||||
|
isSentState(nextEventWithTile.getAssociatedStatus())
|
||||||
|
) {
|
||||||
isLastSuccessful = false;
|
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
|
||||||
// it's successful: we received it.
|
// it's successful: we received it.
|
||||||
|
Loading…
Reference in New Issue
Block a user