Skip to content

Commit c14bee3

Browse files
committed
Fix html message attachment to muc message.
Pull request [#26](https://github.com/metajack/strophejs-plugins/pull/26/files) for fixing the XHTML support used `.h()` for attaching HTML message part. Without it, it doesn't work.
1 parent b16d527 commit c14bee3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

muc/strophe.muc.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Strophe.addConnectionPlugin 'muc',
164164
if html_message?
165165
msg.c("html", xmlns: Strophe.NS.XHTML_IM)
166166
.c("body", xmlns: Strophe.NS.XHTML)
167-
.t(html_message)
167+
.h(html_message)
168168
if msg.node.childNodes.length is 0
169169
# html creation or import failed somewhere; fallback to plaintext
170170
parent = msg.node.parentNode

muc/strophe.muc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)