Update SocketChannelHelper.cs

This commit is contained in:
Sindre Langhus
2016-10-19 14:14:55 +02:00
committed by GitHub
parent a464f9ec3a
commit 98088519d1

View File

@@ -36,7 +36,7 @@ namespace Discord.WebSocket
return result;
//Download remaining messages
ulong? minId = cachedMessages.Count > 0 ? cachedMessages.Min(x => x.Id) : (ulong?)null;
ulong? minId = cachedMessages.Count > 0 ? cachedMessages.Min(x => x.Id) : fromMessageId;
var downloadedMessages = ChannelHelper.GetMessagesAsync(channel, discord, minId, dir, limit, guild, options);
return result.Concat(downloadedMessages);
}