mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-18 00:22:48 +00:00
Fix message count in exported file
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
@@ -42,7 +43,7 @@ namespace DiscordChatExporter.Services
|
|||||||
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
||||||
$"<div class=\"channel-name\">{log.Channel.Name}</div>"));
|
$"<div class=\"channel-name\">{log.Channel.Name}</div>"));
|
||||||
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
||||||
$"<div class=\"misc\">{log.MessageGroups.Count:N0} messages</div>"));
|
$"<div class=\"misc\">{log.MessageGroups.SelectMany(g => g.Messages).Count():N0} messages</div>"));
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
var logHtml = doc.GetElementbyId("log");
|
var logHtml = doc.GetElementbyId("log");
|
||||||
|
|||||||
Reference in New Issue
Block a user