This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/views/dialogs Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import DMRoomMap from '../../../utils/DMRoomMap';
24
24
import Modal from '../../../Modal' ;
25
25
import AccessibleButton from '../elements/AccessibleButton' ;
26
26
import q from 'q' ;
27
+ import dis from '../../../dispatcher' ;
27
28
28
29
const TRUNCATE_QUERY_LIST = 40 ;
29
30
const QUERY_USER_DIRECTORY_DEBOUNCE_MS = 200 ;
@@ -102,7 +103,7 @@ module.exports = React.createClass({
102
103
const ChatCreateOrReuseDialog = sdk . getComponent (
103
104
"views.dialogs.ChatCreateOrReuseDialog" ,
104
105
) ;
105
- Modal . createDialog ( ChatCreateOrReuseDialog , {
106
+ const close = Modal . createDialog ( ChatCreateOrReuseDialog , {
106
107
userId : userId ,
107
108
onFinished : ( success ) => {
108
109
this . props . onFinished ( success ) ;
@@ -112,14 +113,16 @@ module.exports = React.createClass({
112
113
action : 'start_chat' ,
113
114
user_id : userId ,
114
115
} ) ;
116
+ close ( true ) ;
115
117
} ,
116
118
onExistingRoomSelected : ( roomId ) => {
117
119
dis . dispatch ( {
118
120
action : 'view_room' ,
119
- user_id : roomId ,
121
+ room_id : roomId ,
120
122
} ) ;
123
+ close ( true ) ;
121
124
} ,
122
- } ) ;
125
+ } ) . close ;
123
126
} else {
124
127
this . _startChat ( inviteList ) ;
125
128
}
You can’t perform that action at this time.
0 commit comments