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 functionality to send pictures in chat #36

Open
X-TRON404 opened this issue Oct 29, 2021 · 9 comments
Open

Add functionality to send pictures in chat #36

X-TRON404 opened this issue Oct 29, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request Hacktoberfest To work on during Hacktoberfest 2021

Comments

@X-TRON404
Copy link
Owner

Currently, MyPal only supports sending text-based messages in the chat.

The goal is to add functionality to send pictures in the chat.

Screenshot 2021-10-30 at 12 11 03 AM

I have written the sample code for the component and styles for the implementation of the functionality in SendMessage.js and SendMessage.css files.

The code for the screenshot above:

in SendMessage.js:

                <div className="chat__inputFormInsertIcons">
                    <InsertPhotoOutlinedIcon className="sendMessage__photoInsertIcon"/>
                    <InsertEmoticon className="sendMessage__emojiIcon" onClick={()=>{setEmoMenuVisible(!emoMenuVisible)}} style={{cursor: 'pointer'}}/>
                </div>

in SendMessage.css

.chat__inputFormInsertIcons{
  display: flex;
  justify-content: space-between;
  align-items:flex-start;
  margin-top: 3px;
}

.sendMessage__photoInsertIcon{
  margin-top: 10px;
  margin-right:10px;
}

The <SendMessage/> component has the code to input messages to the user. The functionality to send images to user must be implemented in this component. The image URL will be stored in the firebase realtime database in the same location as the text-only messages.

Finally, a custom component for ImageBasedMessages will receive and output the JSON data fetched from the database. For reference you can take a look at Message.js file

@X-TRON404 X-TRON404 added enhancement New feature or request Hacktoberfest To work on during Hacktoberfest 2021 labels Oct 29, 2021
@nguyenhung15913
Copy link

Hi. Can I work on this issue ?

@X-TRON404
Copy link
Owner Author

Hey, @nguyenhung15913 are you still working on this?

@zolezzi
Copy link

zolezzi commented Nov 4, 2021

Hi, I wanted to know if I can make this issue ?

@X-TRON404
Copy link
Owner Author

Hi, I wanted to know if I can make this issue ?

Hey @zolezzi are you still working on this?

@zolezzi
Copy link

zolezzi commented Nov 25, 2021

@X-TRON404 sorry, i just read the message, i'm working on this!

@zolezzi
Copy link

zolezzi commented Dec 15, 2021

Hi, I spoke to you through discord for a problem I have to show the images

@zolezzi
Copy link

zolezzi commented Dec 16, 2021

Hi since yesterday the firebase responds with error from home

@X-TRON404
Copy link
Owner Author

X-TRON404 commented Dec 21, 2021

Hi, I spoke to you through discord for a problem I have to show the images

I can't see any messages in discord.

@X-TRON404
Copy link
Owner Author

X-TRON404 commented Dec 21, 2021

Hi since yesterday the firebase responds with error from home

Yes, I just saw that. There was some problem with current firebase rules. I will change the rules and it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest To work on during Hacktoberfest 2021
Projects
None yet
Development

No branches or pull requests

3 participants