fixed message cache updating

This commit is contained in:
hydrabolt
2015-08-24 18:34:38 +01:00
parent ead8287881
commit 7b7d7ad1af
2 changed files with 4 additions and 0 deletions

View File

@@ -333,6 +333,8 @@ var Client = (function () {
var newMessage = new Message(info, channel, mentions, formerMessage.author);
self.trigger("messageUpdate", newMessage, formerMessage);
channel.messages[channel.messages.indexOf(formerMessage)] = newMessage;
}
// message isn't in cache, and if it's a partial it could cause

View File

@@ -256,6 +256,8 @@ class Client {
self.trigger("messageUpdate", newMessage, formerMessage);
channel.messages[channel.messages.indexOf(formerMessage)] = newMessage;
}
// message isn't in cache, and if it's a partial it could cause