Add a quick sender check to isLastSuccessful

This commit is contained in:
Travis Ralston 2021-03-08 08:51:57 -07:00
parent f87f2b11ef
commit fdea45ad74

View file

@ -604,6 +604,10 @@ export default class MessagePanel extends React.Component {
isLastSuccessful = true; isLastSuccessful = true;
} }
// We only want to consider "last successful" if the event is sent by us, otherwise of course
// it's successful: we received it.
isLastSuccessful = isLastSuccessful && mxEv.getSender() === MatrixClientPeg.get().getUserId();
// use txnId as key if available so that we don't remount during sending // use txnId as key if available so that we don't remount during sending
ret.push( ret.push(
<li <li