Finally fixed the attachment counter which caused crashs in older versions, too

This commit is contained in:
Serraniel 2017-10-12 21:05:06 +02:00
parent 1676c9d961
commit b1dbb28ea5

View file

@ -144,7 +144,7 @@ namespace DML.AppCore.Classes
if (m.Attachments.Count > 0)
{
result.Add(m);
Core.Scheduler.TotalAttachments++;
Core.Scheduler.TotalAttachments += (ulong)m.Attachments.Count;
Trace($"Added message {m.Id}");
}
Debug($"Finished message {m.Id}");