PLT-567 auto join open channels

Этот коммит содержится в:
=Corey Hulen
2015-10-07 17:13:55 -07:00
родитель c189e2bb76
Коммит f548e0ffb9
2 изменённых файлов: 24 добавлений и 5 удалений

Просмотреть файл

@@ -2,6 +2,7 @@
// See License.txt for license information.
const TextFormatting = require('./text_formatting.jsx');
const Utils = require('./utils.jsx');
const marked = require('marked');
@@ -39,7 +40,14 @@ export class MattermostMarkdownRenderer extends marked.Renderer {
if (title) {
output += ' title="' + title + '"';
}
output += ' target="_blank">' + text + '</a>';
if (outHref.indexOf(Utils.getTeamURLFromAddressBar()) === 0) {
output += '>';
} else {
output += ' target="_blank">';
}
output += text + '</a>';
return output;
}