[FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
6d3bcfbd67
commit
17c28e0b1b
|
@ -30,7 +30,7 @@ class ReadReceiptView extends React.Component {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
route: PropTypes.object,
|
route: PropTypes.object,
|
||||||
Message_TimeFormat: PropTypes.string,
|
Message_TimeAndDateFormat: PropTypes.string,
|
||||||
theme: PropTypes.string
|
theme: PropTypes.string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,8 +94,8 @@ class ReadReceiptView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderItem = ({ item }) => {
|
renderItem = ({ item }) => {
|
||||||
const { Message_TimeFormat, theme } = this.props;
|
const { theme, Message_TimeAndDateFormat } = this.props;
|
||||||
const time = moment(item.ts).format(Message_TimeFormat);
|
const time = moment(item.ts).format(Message_TimeAndDateFormat);
|
||||||
if (!item?.user?.username) {
|
if (!item?.user?.username) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ class ReadReceiptView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
Message_TimeFormat: state.settings.Message_TimeFormat
|
Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(withTheme(ReadReceiptView));
|
export default connect(mapStateToProps)(withTheme(ReadReceiptView));
|
||||||
|
|
Loading…
Reference in New Issue