Temporary fix for DownloadMessages
This commit is contained in:
@@ -234,8 +234,10 @@ namespace Discord
|
|||||||
if (cache)
|
if (cache)
|
||||||
msg = _messages.GetOrAdd(x.Id, x.ChannelId, x.Author.Id);
|
msg = _messages.GetOrAdd(x.Id, x.ChannelId, x.Author.Id);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
msg = _messages[x.Id] ?? new Message(this, x.Id, x.ChannelId, x.Author.Id);
|
msg = _messages[x.Id] ?? new Message(this, x.Id, x.ChannelId, x.Author.Id);
|
||||||
//msg.Update(x);
|
msg.Update(x); //TODO: Look into updating when cache is true, but only if we actually generated a new message.
|
||||||
|
}
|
||||||
if (Config.TrackActivity)
|
if (Config.TrackActivity)
|
||||||
{
|
{
|
||||||
if (!channel.IsPrivate)
|
if (!channel.IsPrivate)
|
||||||
|
|||||||
Reference in New Issue
Block a user