Commit d6e3a953 authored by Brian Hatchet's avatar Brian Hatchet 💬
Browse files

Merge branch 'chore/add-extra-information-for-sentry-event-1203549247' into 'release/3.10.0'

(chore): add extra information to sentry event 1203549247

See merge request !348
parents d1bcacb6 0eca94d6
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -13,6 +13,8 @@ import { observer } from 'mobx-react/native'


import { MINDS_CDN_URI } from '../../config/Config';
import { MINDS_CDN_URI } from '../../config/Config';


import Sentry from 'react-native-sentry';

/**
/**
 * Conversation Component
 * Conversation Component
 */
 */
@@ -35,6 +37,11 @@ export default class ConversationView extends Component {
    let unread = item.unread ? <Icon style={styles.icons} name='md-notifications' color='#4caf50' size={19} /> : null;
    let unread = item.unread ? <Icon style={styles.icons} name='md-notifications' color='#4caf50' size={19} /> : null;
    let online = item.online ? <Icon style={styles.icons} name='md-radio-button-on' color='#2196f3' size={19} /> : null;
    let online = item.online ? <Icon style={styles.icons} name='md-radio-button-on' color='#2196f3' size={19} /> : null;
    
    
    // Added to capture information about /issues/1203549247/?project=1538735
    Sentry.setExtraContext({
      conversationViewItem: item
    });
    
    return (
    return (
      <TouchableOpacity style={styles.row} onPress={this._navToConversation}>
      <TouchableOpacity style={styles.row} onPress={this._navToConversation}>
        <Image source={avatarImg} style={styles.avatar} />
        <Image source={avatarImg} style={styles.avatar} />