mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 07:17:12 +03:00
Fix showing potentially outdated message count when merging databases
This commit is contained in:
parent
6ce0ef7d55
commit
3b41ea7b5f
@ -92,6 +92,8 @@ namespace DHT.Desktop.Main.Pages {
|
||||
}
|
||||
|
||||
var oldStatistics = target.Statistics.Clone();
|
||||
var oldMessageCount = target.CountMessages();
|
||||
|
||||
int successful = 0;
|
||||
int finished = 0;
|
||||
|
||||
@ -132,7 +134,7 @@ namespace DHT.Desktop.Main.Pages {
|
||||
var newStatistics = target.Statistics;
|
||||
long newServers = newStatistics.TotalServers - oldStatistics.TotalServers;
|
||||
long newChannels = newStatistics.TotalChannels - oldStatistics.TotalChannels;
|
||||
long newMessages = newStatistics.TotalMessages - oldStatistics.TotalMessages;
|
||||
long newMessages = target.CountMessages() - oldMessageCount;
|
||||
|
||||
StringBuilder message = new StringBuilder();
|
||||
message.Append("Processed ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user