|
@@ -44,11 +44,11 @@ class Thread extends React.Component {
|
44
|
44
|
this.state = {
|
45
|
45
|
appName: 'Thread',
|
46
|
46
|
isVisible: true,
|
47
|
|
- loggedUser: props.app ? props.app.loggedUser : debug.loggedUser,
|
48
|
|
- workspace: props.app ? props.app.workspace : debug.workspace,
|
49
|
|
- content: props.app ? props.app.content : debug.content,
|
50
|
|
- listMessage: props.app ? props.app.content.message_list : debug.listMessage,
|
51
|
|
- appConfig: props.app ? props.app.appConfig : debug.appConfig
|
|
47
|
+ loggedUser: props.data ? props.data.loggedUser : debug.loggedUser,
|
|
48
|
+ workspace: props.data ? props.data.workspace : debug.workspace,
|
|
49
|
+ content: props.data ? props.data.content : debug.content,
|
|
50
|
+ listMessage: props.data ? props.data.content.message_list : debug.listMessage,
|
|
51
|
+ appConfig: props.data ? props.data.appConfig : debug.appConfig
|
52
|
52
|
}
|
53
|
53
|
|
54
|
54
|
document.addEventListener('appCustomEvent', this.customEventReducer)
|