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 committed Aug 26, 2024
1 parent b353223 commit 9e1b46f
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 @@ -226,6 +226,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

2 comments on commit 9e1b46f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.