Skip to content

Commit

Permalink
fix: When updating Note, emojis are not reflected through Streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 authored and jbblily committed Aug 30, 2024
1 parent be425d9 commit c5bbc10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/src/core/GlobalEventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export interface NoteEventTypes {
files: Packed<'DriveFile'>[];
fileIds: string[];
poll: any | null;
emojis: Record<string, string>;
};
reacted: {
reaction: string;
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/core/NoteUpdateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export class NoteUpdateService implements OnApplicationShutdown {
files: noteObj.files ?? [],
fileIds: noteObj.fileIds ?? [],
poll: noteObj.poll ?? null,
emojis: noteObj.emojis ?? [],
});

//#region AP deliver
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/scripts/use-note-capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function useNoteCapture(props: {
note.value.files = body.files;
note.value.fileIds = body.fileIds;
note.value.poll = body.poll;
note.value.emojis = body.emojis;
break;
}

Expand Down

0 comments on commit c5bbc10

Please sign in to comment.