Skip to content
Snippets Groups Projects
Commit 04fb0041 authored by Pierre H. Lehnen's avatar Pierre H. Lehnen Committed by Rodrigo Nascimento
Browse files

Fixed issue that prevented hipchat rooms from being imported (#11188)

parent 0574eec3
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ export class HipChatImporter extends Base {
// const contentType = ref.contentType;
const zip = new this.AdmZip(new Buffer(image, 'base64'));
const zipEntries = zip.getEntries();
const tempRooms = [];
let tempRooms = [];
let tempUsers = [];
const tempMessages = {};
......@@ -42,7 +42,7 @@ export class HipChatImporter extends Base {
let roomName = entry.entryName.split(this.roomPrefix)[1];
if (roomName === 'list.json') {
super.updateProgress(ProgressStep.PREPARING_CHANNELS);
const tempRooms = JSON.parse(entry.getData().toString()).rooms;
tempRooms = JSON.parse(entry.getData().toString()).rooms;
tempRooms.forEach(room => {
room.name = s.slugify(room.name);
});
......
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