Fix read receipts and sent indicators for bubble layout (#7460)
This commit is contained in:
parent
8b88b48edc
commit
fbfd2c3d20
3 changed files with 31 additions and 29 deletions
|
@ -451,7 +451,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||
|
||||
// Check to make sure the sending state is appropriate. A null/undefined send status means
|
||||
// that the message is 'sent', so we're just double checking that it's explicitly not sent.
|
||||
if (this.props.eventSendStatus && this.props.eventSendStatus !== 'sent') return false;
|
||||
if (this.props.eventSendStatus && this.props.eventSendStatus !== EventStatus.SENT) return false;
|
||||
|
||||
// If anyone has read the event besides us, we don't want to show a sent receipt.
|
||||
const receipts = this.props.readReceipts || [];
|
||||
|
@ -468,7 +468,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||
|
||||
// Check the event send status to see if we are pending. Null/undefined status means the
|
||||
// message was sent, so check for that and 'sent' explicitly.
|
||||
if (!this.props.eventSendStatus || this.props.eventSendStatus === 'sent') return false;
|
||||
if (!this.props.eventSendStatus || this.props.eventSendStatus === EventStatus.SENT) return false;
|
||||
|
||||
// Default to showing - there's no other event properties/behaviours we care about at
|
||||
// this point.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue