Fix messenger bugs
This commit is contained in:
@@ -435,6 +435,7 @@ define([
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}).filter(function (decrypted) {
|
}).filter(function (decrypted) {
|
||||||
|
if (decrypted.d && decrypted.d[0] !== Types.message) { return; }
|
||||||
return decrypted;
|
return decrypted;
|
||||||
}).map(function (O) {
|
}).map(function (O) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -499,7 +499,6 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
messenger.on('message', function (message) {
|
messenger.on('message', function (message) {
|
||||||
common.notify();
|
|
||||||
var chanId = message.channel;
|
var chanId = message.channel;
|
||||||
|
|
||||||
var chat = getChat(chanId);
|
var chat = getChat(chanId);
|
||||||
@@ -514,6 +513,7 @@ define([
|
|||||||
console.error('expected channel [%s] to be open', chanId);
|
console.error('expected channel [%s] to be open', chanId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
common.notify();
|
||||||
|
|
||||||
channel.messages.push(message);
|
channel.messages.push(message);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user