real-time updates on note detail view
`useNoteCapture` already subscribes to all updates for a note, so we can tell it when a note gets replied to, too Since I'm not actually adding any extra subscription in the client, just an extra callback, there should be no overhead when replies are not coming in. Also, all the timelines already call `useNoteCapture` for each note displayed, so we know the whole `GlobalEventService` thing works fine. Many thanks to VueJS for taking care of all the DOM complications
This commit is contained in:
@@ -130,6 +130,9 @@ export interface NoteEventTypes {
|
||||
reaction: string;
|
||||
userId: MiUser['id'];
|
||||
};
|
||||
replied: {
|
||||
id: MiNote['id'];
|
||||
};
|
||||
}
|
||||
type NoteStreamEventTypes = {
|
||||
[key in keyof NoteEventTypes]: {
|
||||
|
||||
Reference in New Issue
Block a user