feat(P5A.T5): composer Watch-Together button + bubble dispatch
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
type DecryptedMessage,
|
||||
type PollOption,
|
||||
type WhiteboardPayload,
|
||||
type WatchTogetherPayload,
|
||||
} from '@chat-app/shared/chat';
|
||||
|
||||
export type AttachmentBucket = 'media' | 'audio' | 'files';
|
||||
@@ -107,6 +108,15 @@ export function createWhiteboardPayload(whiteboardId: string): string {
|
||||
return serializeMessagePayload(payload);
|
||||
}
|
||||
|
||||
export function createWatchTogetherPayload(sessionId: string): string {
|
||||
const payload: WatchTogetherPayload = {
|
||||
v: 1,
|
||||
type: 'watch_together',
|
||||
session_id: sessionId,
|
||||
};
|
||||
return serializeMessagePayload(payload);
|
||||
}
|
||||
|
||||
export function summarizePollVotes(
|
||||
options: PollOption[],
|
||||
reactions: ReactionSummaryInput[],
|
||||
|
||||
Reference in New Issue
Block a user