[frontend/core] Add bookmarked state to note store
This commit is contained in:
parent
00077374ea
commit
380ef2eacf
4 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@ internal class NoteStore : NoteMessageProvider, IDisposable
|
|||
note.Text = noteResponse.Text;
|
||||
note.Cw = noteResponse.Cw;
|
||||
note.Emoji = noteResponse.Emoji;
|
||||
note.Bookmarked = noteResponse.Bookmarked;
|
||||
note.Liked = noteResponse.Liked;
|
||||
note.Likes = noteResponse.Likes;
|
||||
note.Renotes = noteResponse.Renotes;
|
||||
|
|
|
@ -80,6 +80,7 @@ internal class NotificationStore : NoteMessageProvider, IAsyncDisposable
|
|||
el.Value.Note.Cw = noteResponse.Cw;
|
||||
el.Value.Note.Text = noteResponse.Text;
|
||||
el.Value.Note.Emoji = noteResponse.Emoji;
|
||||
el.Value.Note.Bookmarked = noteResponse.Bookmarked;
|
||||
el.Value.Note.Liked = noteResponse.Liked;
|
||||
el.Value.Note.Likes = noteResponse.Likes;
|
||||
el.Value.Note.Renotes = noteResponse.Renotes;
|
||||
|
|
|
@ -29,6 +29,7 @@ internal class RelatedStore : NoteMessageProvider, IDisposable
|
|||
note.Text = noteResponse.Text;
|
||||
note.Cw = noteResponse.Cw;
|
||||
note.Emoji = noteResponse.Emoji;
|
||||
note.Bookmarked = noteResponse.Bookmarked;
|
||||
note.Liked = noteResponse.Liked;
|
||||
note.Likes = noteResponse.Likes;
|
||||
note.Renotes = noteResponse.Renotes;
|
||||
|
@ -58,6 +59,7 @@ internal class RelatedStore : NoteMessageProvider, IDisposable
|
|||
input.Text = updated.Text;
|
||||
input.Cw = updated.Cw;
|
||||
input.Emoji = updated.Emoji;
|
||||
input.Bookmarked = updated.Bookmarked;
|
||||
input.Liked = updated.Liked;
|
||||
input.Likes = updated.Likes;
|
||||
input.Renotes = updated.Renotes;
|
||||
|
|
|
@ -40,6 +40,7 @@ internal class TimelineStore : NoteMessageProvider, IAsyncDisposable, IStreaming
|
|||
el.Value.Reply.Cw = changedNote.Cw;
|
||||
el.Value.Reply.Text = changedNote.Text;
|
||||
el.Value.Reply.Emoji = changedNote.Emoji;
|
||||
el.Value.Reply.Bookmarked = changedNote.Bookmarked;
|
||||
el.Value.Reply.Liked = changedNote.Liked;
|
||||
el.Value.Reply.Likes = changedNote.Likes;
|
||||
el.Value.Reply.Renotes = changedNote.Renotes;
|
||||
|
@ -58,6 +59,7 @@ internal class TimelineStore : NoteMessageProvider, IAsyncDisposable, IStreaming
|
|||
el.Value.Renote.Text = changedNote.Text;
|
||||
el.Value.Renote.Cw = changedNote.Cw;
|
||||
el.Value.Renote.Emoji = changedNote.Emoji;
|
||||
el.Value.Renote.Bookmarked = changedNote.Bookmarked;
|
||||
el.Value.Renote.Liked = changedNote.Liked;
|
||||
el.Value.Renote.Likes = changedNote.Likes;
|
||||
el.Value.Renote.Renotes = changedNote.Renotes;
|
||||
|
@ -75,6 +77,7 @@ internal class TimelineStore : NoteMessageProvider, IAsyncDisposable, IStreaming
|
|||
note.Cw = changedNote.Cw;
|
||||
note.Text = changedNote.Text;
|
||||
note.Emoji = changedNote.Emoji;
|
||||
note.Bookmarked = changedNote.Bookmarked;
|
||||
note.Liked = changedNote.Liked;
|
||||
note.Likes = changedNote.Likes;
|
||||
note.Renotes = changedNote.Renotes;
|
||||
|
|
Loading…
Add table
Reference in a new issue