diff --git a/app/containers/message/Attachments.tsx b/app/containers/message/Attachments.tsx
index 22b517d94..311ad839a 100644
--- a/app/containers/message/Attachments.tsx
+++ b/app/containers/message/Attachments.tsx
@@ -36,16 +36,20 @@ const Attachments = React.memo(
return attachments.map((file: any, index: number) => {
if (file.image_url) {
- return ;
+ return (
+
+ );
}
if (file.audio_url) {
- return ;
+ return ;
}
if (file.video_url) {
- return ;
+ return (
+
+ );
}
if (file.actions && file.actions.length > 0) {
- return ;
+ return ;
}
return (
diff --git a/app/views/ThreadMessagesView/index.js b/app/views/ThreadMessagesView/index.js
index 5951ba8b9..77b861579 100644
--- a/app/views/ThreadMessagesView/index.js
+++ b/app/views/ThreadMessagesView/index.js
@@ -47,7 +47,8 @@ class ThreadMessagesView extends React.Component {
useRealName: PropTypes.bool,
theme: PropTypes.string,
isMasterDetail: PropTypes.bool,
- insets: PropTypes.object
+ insets: PropTypes.object,
+ Message_TimeFormat: PropTypes.string
};
constructor(props) {
@@ -412,7 +413,7 @@ class ThreadMessagesView extends React.Component {
};
renderItem = ({ item }) => {
- const { user, navigation, baseUrl, useRealName } = this.props;
+ const { user, navigation, baseUrl, useRealName, Message_TimeFormat } = this.props;
const badgeColor = this.getBadgeColor(item);
return (
@@ -506,7 +508,8 @@ const mapStateToProps = state => ({
baseUrl: state.server.server,
user: getUserSelector(state),
useRealName: state.settings.UI_Use_Real_Name,
- isMasterDetail: state.app.isMasterDetail
+ isMasterDetail: state.app.isMasterDetail,
+ Message_TimeFormat: state.settings.Message_TimeFormat
});
export default connect(mapStateToProps)(withTheme(withSafeAreaInsets(ThreadMessagesView)));