Skip to content

Fix: Resolve compilation type errors in MessageContext.tsx#223

Merged
MohitBareja16 merged 2 commits into
mainfrom
fix/message-context-compilation
Jun 1, 2026
Merged

Fix: Resolve compilation type errors in MessageContext.tsx#223
MohitBareja16 merged 2 commits into
mainfrom
fix/message-context-compilation

Conversation

@MohitBareja16

Copy link
Copy Markdown
Collaborator

Description

Closes #222

This PR resolves lingering TypeScript compilation errors in MessageContext.tsx related to string assignment and function return types.

Changes Made

  • Safe Fallback Assignment: Added a fallback empty string "" to senderId: currentUser.id || "" to satisfy the strict Message interface requirement.
  • Interface Alignment: Updated the return type of markAllAsSeen in MessageContextType from Promise<any> to void, matching its actual implementation and resolving context provider assignment errors.

Verification

  • Verified that npm run build and TypeScript compiler pass successfully for MessageContext.tsx.

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npm-chat-fxjq Error Error Jun 1, 2026 6:20pm

@github-actions github-actions Bot added level:beginner Beginner level difficulty quality:clean Clean code quality type:bug Bug fix gssoc:approved Approved for GirlScript Summer of Code labels Jun 1, 2026
@MohitBareja16 MohitBareja16 added level:intermediate Intermediate level difficulty quality:exceptional Exceptional code quality and removed quality:clean Clean code quality labels Jun 1, 2026
@MohitBareja16 MohitBareja16 removed the level:beginner Beginner level difficulty label Jun 1, 2026
@MohitBareja16 MohitBareja16 merged commit 0364c83 into main Jun 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for GirlScript Summer of Code level:intermediate Intermediate level difficulty quality:exceptional Exceptional code quality type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Resolve compilation type errors in MessageContext.tsx

1 participant