[FIX] Show attachment on ThreadMessagesView (#1493)
This commit is contained in:
parent
71bcef1510
commit
514e73c711
|
@ -253,6 +253,11 @@ class ThreadMessagesView extends React.Component {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showAttachment = (attachment) => {
|
||||||
|
const { navigation } = this.props;
|
||||||
|
navigation.navigate('AttachmentView', { attachment });
|
||||||
|
}
|
||||||
|
|
||||||
onThreadPress = debounce((item) => {
|
onThreadPress = debounce((item) => {
|
||||||
const { navigation } = this.props;
|
const { navigation } = this.props;
|
||||||
navigation.push('RoomView', {
|
navigation.push('RoomView', {
|
||||||
|
@ -307,6 +312,7 @@ class ThreadMessagesView extends React.Component {
|
||||||
useRealName={useRealName}
|
useRealName={useRealName}
|
||||||
getCustomEmoji={this.getCustomEmoji}
|
getCustomEmoji={this.getCustomEmoji}
|
||||||
navToRoomInfo={this.navToRoomInfo}
|
navToRoomInfo={this.navToRoomInfo}
|
||||||
|
showAttachment={this.showAttachment}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue