Skip to content
Snippets Groups Projects
Commit edf73124 authored by Prateek Jain's avatar Prateek Jain Committed by Diego Mello
Browse files

[FIX] Clicking user avatar in thread previews crashes app (#1363)

parent 11e1778f
No related branches found
No related tags found
2 merge requests!32Android changes,!31Ios changes
......@@ -257,6 +257,14 @@ class ThreadMessagesView extends React.Component {
</View>
)
navToRoomInfo = (navParam) => {
const { navigation, user } = this.props;
if (navParam.rid === user.id) {
return;
}
navigation.navigate('RoomInfoView', navParam);
}
renderItem = ({ item }) => {
const {
user, navigation, baseUrl, useRealName
......@@ -276,6 +284,7 @@ class ThreadMessagesView extends React.Component {
baseUrl={baseUrl}
useRealName={useRealName}
getCustomEmoji={this.getCustomEmoji}
navToRoomInfo={this.navToRoomInfo}
/>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment