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; }
|
2026-10-18 09:18:26 +02:00
|
|
|
public bool MarkedUnread { get; set; }//Mastodon's POST /api/v1/conversations/:id/unread, until it is read again (R9)
|
2026-10-05 05:37:28 +02:00
|
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
}
|