Files
SocialPub/PrivaPub/Models/Social/ConversationState.cs
T

15 lines
575 B
C#
Raw Normal View History

2026-10-05 05:37:28 +02:00
using MongoDB.Entities;
namespace PrivaPub.Models.Social
{
// how far a persona has read a direct conversation, and up to which post it took the conversation off its list
// (Mastodon's DELETE /api/v1/conversations/:id): a newer message brings it back, unread. Post ids, compared as strings.
public class ConversationState : Entity
{
public string AvatarId { get; set; }
public string ConversationId { get; set; }
public string LastReadPostId { get; set; }
public string HiddenUpTo { get; set; }
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
}