Merge pull request #1373 from matrix-org/dbkr/code_copy_only_html

Only add the code copy button for HTML messages
pull/21833/head
Matthew Hodgson 2017-09-09 05:31:05 +01:00 committed by GitHub
commit e1aefd2119
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ export function bodyToHtml(content, highlights, opts) {
} }
safeBody = sanitizeHtml(body, sanitizeHtmlParams); safeBody = sanitizeHtml(body, sanitizeHtmlParams);
safeBody = unicodeToImage(safeBody); safeBody = unicodeToImage(safeBody);
safeBody = addCodeCopyButton(safeBody); if (isHtml) safeBody = addCodeCopyButton(safeBody);
} }
finally { finally {
delete sanitizeHtmlParams.textFilter; delete sanitizeHtmlParams.textFilter;