Commit 911ede28 authored by JC Brand's avatar JC Brand

Small bugfixes.

- Filter did the opposite of what it was supposed to do
- Wrong bind context
- Should actually be mam:2, issue was server misconfiguration
parent dd505ad9
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
Strophe.addNamespace('FORWARD', 'urn:xmpp:forward:0'); Strophe.addNamespace('FORWARD', 'urn:xmpp:forward:0');
Strophe.addNamespace('HINTS', 'urn:xmpp:hints'); Strophe.addNamespace('HINTS', 'urn:xmpp:hints');
Strophe.addNamespace('HTTPUPLOAD', 'urn:xmpp:http:upload:0'); Strophe.addNamespace('HTTPUPLOAD', 'urn:xmpp:http:upload:0');
Strophe.addNamespace('MAM', 'urn:xmpp:mam:1'); Strophe.addNamespace('MAM', 'urn:xmpp:mam:2');
Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick');
Strophe.addNamespace('OUTOFBAND', 'jabber:x:oob'); Strophe.addNamespace('OUTOFBAND', 'jabber:x:oob');
Strophe.addNamespace('PUBSUB', 'http://jabber.org/protocol/pubsub'); Strophe.addNamespace('PUBSUB', 'http://jabber.org/protocol/pubsub');
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
function (messages) { function (messages) {
that.clearSpinner(); that.clearSpinner();
if (messages.length) { if (messages.length) {
_.each(messages, that.model.onMessage.bind(that)); _.each(messages, that.model.onMessage.bind(that.model));
} }
}, },
function () { function () {
......
...@@ -635,7 +635,7 @@ ...@@ -635,7 +635,7 @@
} else { } else {
matches = this.model.contacts.filter((contact) => { matches = this.model.contacts.filter((contact) => {
const value = contact.get('fullname') || contact.get('jid'); const value = contact.get('fullname') || contact.get('jid');
return _.includes(value.toLowerCase(), q.toLowerCase()); return !_.includes(value.toLowerCase(), q.toLowerCase());
}); });
} }
return matches; return matches;
......
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