You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Add a quick sender check to isLastSuccessful
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user