Commit 3fc0ef1e authored by JC Brand's avatar JC Brand

Remove snippet of code that's not being used.

parent 5fce1556
...@@ -924,7 +924,7 @@ ...@@ -924,7 +924,7 @@
$message.find(INACTIVE).length && INACTIVE || $message.find(INACTIVE).length && INACTIVE ||
$message.find(ACTIVE).length && ACTIVE || $message.find(ACTIVE).length && ACTIVE ||
$message.find(GONE).length && GONE, $message.find(GONE).length && GONE,
stamp, time, sender, from, createMessage; stamp, time, sender, from;
if (is_groupchat) { if (is_groupchat) {
from = Strophe.unescapeNode(Strophe.getResourceFromJid($message.attr('from'))); from = Strophe.unescapeNode(Strophe.getResourceFromJid($message.attr('from')));
...@@ -943,11 +943,6 @@ ...@@ -943,11 +943,6 @@
} else { } else {
sender = 'them'; sender = 'them';
} }
if (!body) {
createMessage = this.messages.add;
} else {
createMessage = this.messages.create;
}
this.messages.create({ this.messages.create({
chat_state: chat_state, chat_state: chat_state,
delayed: delayed, delayed: delayed,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment