From 514e73c7115c4d5c926b24305a3c9f9842fe9905 Mon Sep 17 00:00:00 2001 From: Prateek Jain Date: Tue, 28 Jan 2020 19:11:06 +0530 Subject: [PATCH] [FIX] Show attachment on ThreadMessagesView (#1493) --- app/views/ThreadMessagesView/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/ThreadMessagesView/index.js b/app/views/ThreadMessagesView/index.js index 0d3c84195..6a953340c 100644 --- a/app/views/ThreadMessagesView/index.js +++ b/app/views/ThreadMessagesView/index.js @@ -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} /> ); }