[FIX] Show attachment on ThreadMessagesView (#1493)

This commit is contained in:
Prateek Jain 2020-01-28 19:11:06 +05:30 committed by Diego Mello
parent 71bcef1510
commit 514e73c711
1 changed files with 6 additions and 0 deletions

View File

@ -253,6 +253,11 @@ class ThreadMessagesView extends React.Component {
return null;
}
showAttachment = (attachment) => {
const { navigation } = this.props;
navigation.navigate('AttachmentView', { attachment });
}
onThreadPress = debounce((item) => {
const { navigation } = this.props;
navigation.push('RoomView', {
@ -307,6 +312,7 @@ class ThreadMessagesView extends React.Component {
useRealName={useRealName}
getCustomEmoji={this.getCustomEmoji}
navToRoomInfo={this.navToRoomInfo}
showAttachment={this.showAttachment}
/>
);
}