Skip to content

Commit

Permalink
Merge branch 'core/RocketChat#8264-room-types' into feature/#19-decou…
Browse files Browse the repository at this point in the history
…ple-help-requests
  • Loading branch information
mrsimpson committed Sep 29, 2017
2 parents bfc8dfd + 9d2381e commit b285961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-lib/client/lib/roomTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ RocketChat.roomTypes = new class extends roomTypesCommon {
return this.roomTypes[roomType].notSubscribedTpl;
}
getCreationTemplate(roomType) {
if (this.roomTypes[roomType] && !this.roomTypes[roomType].creationTemplate) {
return false;
}
return this.roomTypes[roomType].creationTemplate;
}
};

0 comments on commit b285961

Please sign in to comment.