mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-15 19:32:31 +00:00
Fix tests, clean up
This commit is contained in:
@@ -8,7 +8,6 @@ using JsonExtensions.Reading;
|
||||
namespace DiscordChatExporter.Core.Discord.Data;
|
||||
|
||||
// https://docs.discord.com/developers/resources/message#message-snapshot-object
|
||||
// Message snapshots contain a subset of message fields for forwarded messages
|
||||
public record MessageSnapshot(
|
||||
DateTimeOffset Timestamp,
|
||||
DateTimeOffset? EditedTimestamp,
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
@* Forwarded message content *@
|
||||
@* Forwarded message *@
|
||||
@if (message is { IsForwarded: true, ForwardedMessage: not null })
|
||||
{
|
||||
<div class="chatlog__forwarded">
|
||||
@@ -273,7 +273,7 @@
|
||||
<em>Forwarded</em>
|
||||
</div>
|
||||
|
||||
@* Forwarded text content *@
|
||||
@* Forwarded content *@
|
||||
@if (!string.IsNullOrWhiteSpace(message.ForwardedMessage.Content))
|
||||
{
|
||||
<div class="chatlog__forwarded-content chatlog__markdown">
|
||||
|
||||
Reference in New Issue
Block a user