Rename isForward to isForwarded

This commit is contained in:
farley128 2025-12-26 15:58:02 -05:00
parent 2f96252866
commit 6debb1c825
2 changed files with 4 additions and 4 deletions

View file

@ -36,12 +36,12 @@ public partial record Message(
public bool IsReply { get; } = Kind == MessageKind.Reply;
// A message is a forward if its reference type is Forward
public bool IsForward { get; } = Reference?.Kind == MessageReferenceKind.Forward;
// App interactions are rendered as replies in the Discord client, but they are not actually replies
public bool IsReplyLike => IsReply || Interaction is not null;
// A message is a forward if its reference type is Forward
public bool IsForward { get; } = Reference?.Kind == MessageReferenceKind.Forward;
public bool IsEmpty { get; } =
string.IsNullOrWhiteSpace(Content)
&& !Attachments.Any()

View file

@ -263,7 +263,7 @@
}
@* Forwarded message content *@
@if (message.IsForward && message.ForwardedMessage is not null)
@if (message.IsForwarded && message.ForwardedMessage is not null)
{
var fwd = message.ForwardedMessage;
<div class="chatlog__forwarded">