Commit e8a70abc authored by JC Brand's avatar JC Brand

Bugfix. Chat room status messages weren't being shown in certain cases.

parent a3e540fa
...@@ -2363,18 +2363,14 @@ ...@@ -2363,18 +2363,14 @@
msgs, i; msgs, i;
for (i=0; i<$stats.length; i++) { for (i=0; i<$stats.length; i++) {
var stat = $stats[i].getAttribute('code'); var stat = $stats[i].getAttribute('code');
if (is_self) { if (is_self && _.contains(_.keys(this.disconnectMessages), stat)) {
if (_.contains(_.keys(this.disconnectMessages), stat)) { disconnect_msgs.push(this.disconnectMessages[stat]);
disconnect_msgs.push(this.disconnectMessages[stat]); } else if (!is_self && _.contains(_.keys(this.actionInfoMessages), stat)) {
} action_msgs.push(
} else { __(this.actionInfoMessages[stat], Strophe.unescapeNode(Strophe.getResourceFromJid($el.attr('from'))))
if (_.contains(_.keys(this.infoMessages), stat)) { );
info_msgs.push(this.infoMessages[stat]); } else if (_.contains(_.keys(this.infoMessages), stat)) {
} else if (_.contains(_.keys(this.actionInfoMessages), stat)) { info_msgs.push(this.infoMessages[stat]);
action_msgs.push(
__(this.actionInfoMessages[stat], Strophe.unescapeNode(Strophe.getResourceFromJid($el.attr('from'))))
);
}
} }
} }
if (disconnect_msgs.length > 0) { if (disconnect_msgs.length > 0) {
......
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