50 Replies
Hi @Revaycolizer thanks for sharing. Do you mind sharing the GitHub repo too. Also I sent you a DM can you check. Thanks
github.com/Revaycolizer/chat
Did you sign up?
As currently I see no new user registered, could you please share what you were doing that led to that error
New look
slick!
I try to sign up with Google auth after signing up it throw this error
Did you try changing the browser you are using?? Or updating it as it maybe the cause
Did you have a try on it?
Everything changed as of current updates, more coming soon
this edge
I use chrome before
the same with firebase
I wonder what might be the problem there as I see there are two newly registered users and it seems to be working fine for them, as that keeps me wondering as to what might be the cause in your side
Could you please try using your phone or updating the browser or checking if it's blocking third party apps
Alright
@Revaycolizer Hi, are the messages e2e encrypted?
Absolutely
Added a switch button to switch to social media and to switch to messaging app
nice, how did you build the e2e encryption?
Well I used a package to perform encryption of the messages while sending them and decryption of the messages while rendering them
nice, which packages?
crypto-js
Is the project open source?
Nope
Ok, would be so nice to see the implementation and learn from your code
Worry out give me a few minutes I'm sending the implementation of encryption and decryption
Decryption
how do you exchange the secret key?
Encryption
You can use env variables for that use the same key for encryption and decryption
interesting, but don't have the user encrypt and decrypt the messages?
otherwise you can use the secret key to decrypt the messages of your users
The key is used to encrypt each message of the user and decrypt it you can think of the way to make it dynamic if you to achieve it that maybe use the userId for encryption or decryption which would have a lot of work around as to decrypt the messages in every conversation with the correct secret key
but you also have access to the user id
The users are not the ones encrypting when they type and send the message,they just see what they wrote but encryption is done under the hood
Yes exactly
yes, of course, the client's code is encrypting
Absolutely I think you get the concept and also decryption occurs server side as I used SSR I fetch the encrypted messages but during rendering I performed decryption under the hood and nothing will be doubted , it will be seen as just there is no encryption while it is automatically happening but under the hood
Added features
Added online and typing event listening
@Revaycolizer How can I create a chat on desktop?
Where do I have to click?
There's a plus at the bottom right
Yeah, and if I click on the plus I get redirected to /users
and on /users I can't do anything
Am I doing something wrong?
Just click on any user and you will be redirected to the inbox
Can't click on them
Are you clicking at that point ☝️?
I am clicking all the time in the video
Well I'll try to check what's the problem there
Which browser are you using?
Edge
@Revaycolizer
Yes