mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #5930 from matrix-org/travis/error-view-fix
Handle possible edge case with getting stuck in "unsent messages" bar
This commit is contained in:
commit
afd53d8b53
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ export default class RoomStatusBar extends React.Component {
|
|||
|
||||
_onRoomLocalEchoUpdated = (event, room, oldEventId, oldStatus) => {
|
||||
if (room.roomId !== this.props.room.roomId) return;
|
||||
this.setState({unsentMessages: getUnsentMessages(this.props.room)});
|
||||
const messages = getUnsentMessages(this.props.room);
|
||||
this.setState({
|
||||
unsentMessages: messages,
|
||||
isResending: messages.length > 0 && this.state.isResending,
|
||||
});
|
||||
};
|
||||
|
||||
// Check whether current size is greater than 0, if yes call props.onVisible
|
||||
|
|
Loading…
Reference in a new issue