@if (Message.BoostingUser != null)
{
@Message.BoostingUser.DisplayName
@Localizer["boosted"]
}
@Message.User.DisplayName
@Message.User.UserName
@Message.CreatedAt.GetPassedTime(Localizer._pLocalizer)
@if (Message.Title is { Length: > 0 })
{
@Message.Title
}
@if (Message.Content is { Length: > 0 })
{
@((MarkupString)Message.Content)
}
@if (Message.Medias.Count != 0)
{
@foreach (var media in Message.Medias)
{
if (media.ContentType.StartsWith("image"))
{
}
else if (media.ContentType.StartsWith("video"))
{
}
else if (media.ContentType.StartsWith("audio"))
{
}
else
{
@media.FileName
@media.ContentType
await OnMessageMediaDownload.InvokeAsync(media)" type="button">
}
}
}
@if (OnMessageReply.HasDelegate)
{
}
@if (OnMessageBoost.HasDelegate)
{
OnMessageBoost.InvokeAsync(Message)"
title="@Localizer["Boost"]">
@if (Message.BoostsCounter != 0)
{
@Message.BoostsCounter
}
}
@if (OnMessageFavourite.HasDelegate)
{
OnMessageFavourite.InvokeAsync(Message)"
title="@Localizer["Favourite"]">
}
Message.IsOptionsOpen = !Message.IsOptionsOpen"
title="@Localizer["Other"]">
@if (OnUserDirectMessage.HasDelegate)
{
OnUserDirectMessage.InvokeAsync(Message)">
@Localizer["Direct message"]
}
@if (OnUserSilence.HasDelegate)
{
OnUserSilence.InvokeAsync(Message.User)">
@Localizer["Mute"]
}
@if (OnUserBlock.HasDelegate)
{
OnUserBlock.InvokeAsync(Message.User)">
@Localizer["Block"]
}
@if (@*Message.User.UserName == CurrentUserName &&*@ OnMessageDelete.HasDelegate)
{
@Localizer["Delete"]
}
@if (IncludeExpand)
{
}