Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Emoji Support in Sending Anonymous message #227

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Saurabhchaudhary9799
Copy link

@Saurabhchaudhary9799 Saurabhchaudhary9799 commented Oct 23, 2024

📋 Description

This PR enhances the messaging functionality by adding full support for emojis. It ensures that messages containing emojis are properly encrypted and decrypted without any data loss or corruption. The encryption and decryption processes now handle UTF-8 encoding, making sure that all characters, including emojis, are supported.

🔨 Changes Made

  • add addEmoji function in content with emoji-picker-react library
  • Updated the encryption function to convert messages to UTF-8 bytes before encryption.
  • Updated the decryption function to handle UTF-8 bytes and convert them back to strings after decryption.
  • Verified that messages with emojis (and other UTF-8 characters) can be successfully sent, encrypted, decrypted, and displayed.
  • Enhanced error handling for cases where decryption fails or the message is not encrypted.

✅ Checklist

Before submitting the PR, please make sure you have completed the following:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings.
  • I have tested it locally and it works fine.
  • Any dependent changes have been merged and published in downstream modules.

🏷️ Types of Changes

What type of changes does your code introduce? (Check all that apply)

  • Bug fix (non-breaking change which fixes an issue) 🐛
  • New feature (non-breaking change which adds functionality) ✨
  • UI enhancement (non-breaking change which enhances UI) 🎨
  • Documentation update 📚

🤝 Related Issues

📸 Screenshots (if applicable)

Screencast.from.2024-10-23.13-04-19.webm

Thank you for contributing to Truth-Tunnel! We look forward to reviewing your PR and getting it merged!

Copy link

vercel bot commented Oct 23, 2024

@Saurabhchaudhary9799 is attempting to deploy a commit to the mitulsonagara's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Saurabhchaudhary9799
Copy link
Author

@MitulSonagara , I pushed my code , please check it once and merge it.

@Saurabhchaudhary9799
Copy link
Author

@MitulSonagara , Please check it once and merge it.

@MitulSonagara
Copy link
Owner

@Saurabhchaudhary9799

can you resolve the conflicts

@Saurabhchaudhary9799
Copy link
Author

@Saurabhchaudhary9799

can you resolve the conflicts

@MitulSonagara , I have resolved conflicts. Please add level3 label on this pull request.

Copy link

vercel bot commented Oct 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
truth-tunnel ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 8:06pm

@MitulSonagara
Copy link
Owner

@Saurabhchaudhary9799

again its having conflicts... sorry bro for the delay i was in the middle of the work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add Support for Sending Emojis in Messages
2 participants