de-lint createRoom

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-07-01 14:40:46 +01:00
parent 7da14d7078
commit b937957609
No known key found for this signature in database
GPG Key ID: 0435A1D4BBD34D64
2 changed files with 11 additions and 12 deletions

View File

@ -116,7 +116,6 @@ src/components/views/voip/IncomingCallBox.js
src/components/views/voip/VideoFeed.js src/components/views/voip/VideoFeed.js
src/components/views/voip/VideoView.js src/components/views/voip/VideoView.js
src/ContentMessages.js src/ContentMessages.js
src/createRoom.js
src/DateUtils.js src/DateUtils.js
src/email.js src/email.js
src/extend.js src/extend.js

View File

@ -14,24 +14,24 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
var MatrixClientPeg = require('./MatrixClientPeg'); import MatrixClientPeg from './MatrixClientPeg';
var Modal = require('./Modal'); import Modal from './Modal';
var sdk = require('./index'); import sdk from './index';
import { _t } from './languageHandler'; import { _t } from './languageHandler';
var dis = require("./dispatcher"); import dis from "./dispatcher";
var Rooms = require("./Rooms"); import Rooms from "./Rooms";
var q = require('q'); import q from 'q';
/** /**
* Create a new room, and switch to it. * Create a new room, and switch to it.
* *
* Returns a promise which resolves to the room id, or null if the
* action was aborted or failed.
*
* @param {object=} opts parameters for creating the room * @param {object=} opts parameters for creating the room
* @param {string=} opts.dmUserId If specified, make this a DM room for this user and invite them * @param {string=} opts.dmUserId If specified, make this a DM room for this user and invite them
* @param {object=} opts.createOpts set of options to pass to createRoom call. * @param {object=} opts.createOpts set of options to pass to createRoom call.
*
* @returns {Promise} which resolves to the room id, or null if the
* action was aborted or failed.
*/ */
function createRoom(opts) { function createRoom(opts) {
opts = opts || {}; opts = opts || {};
@ -69,11 +69,11 @@ function createRoom(opts) {
createOpts.initial_state = createOpts.initial_state || [ createOpts.initial_state = createOpts.initial_state || [
{ {
content: { content: {
guest_access: 'can_join' guest_access: 'can_join',
}, },
type: 'm.room.guest_access', type: 'm.room.guest_access',
state_key: '', state_key: '',
} },
]; ];
const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner'); const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');