arrow_back
Back to Tickets
Edit Trouble Ticket
Update the ticket information below
Date Initiated
*
Status
*
Open
Pending
Completed
Terminated
Creator
*
Priority
*
1
Urgent
Select urgency...
Urgent
Not Urgent
Important
Select importance...
Important
Not Important
Project Name
*
zfrika
Problem
*
message reply to post . allow viewers of post to message the person who posted. then the message is sent to the inbox of the
Question
you've got a : POST /zfrikadev/compose what did the other compose look like? it was called ="<%= BASE_URL_PATH %>/message" it's also a POST method. do we know the object_id in the message? what that passed in the results_detail route? and handed over? + how many files would I need to update? 10. views/messaging-system.ejs views/category/results_details.ejs views/newpost/viewuserprofile.ejs models/messages.js public/scripts/messaging-system.js public/scripts/viewuserprofile.js public/scripts/connections-system.js routes/checkmessagesRoutes.js routes/contactsRoutes.js routes/messagesRoutes.js can we map out everything . to see how it all connects.
Root Cause
Notes
just because I want to use to_internal, doenst mean I need to change all the recipients and and from . I can just pass the to_internalmessage to recipient. and it will be assigned. as the recipient. then get the from_internalmessage as the from. that way you are still using a value that will never change. Now if I change everything, I dont need to because. I I''ll break the architecture.
Strategy
Helpful People
Helpful Links
Diagram
Previous Steps
what's next. first allow the messager to open a box that allows them to post a message. do not show the identity of the person they are messaging. allow both of them to keep their identity a secrets , so that someone doesn't try to smoke out someone in a community for being gay by setting up a trap. open a chatroom. you can show your identity or hid it. using the server to chat will take a toll on the server cost. while socket.io is free. how did I message the last last compose feature? this get route will compose a message to anyone in the system. you just need to send to this person. GET /zfrikadev/openmessages/98e87823ae84bb9bc70521de7cebb51d814846d9eb9a3ae88e302e28438a7729/?recipient=kk I want to send a get request that looks like this. since the sender is already logged in. there datatoken is known. but the datatoken of the recipient is not know. you'll need to look up their data token. we can lookup the _id of the post, and then send a message to the recipient. if the user changes their name, then the message is lost. no, if the record is saved to a datatoken, then it will look for the recent username that is assigned tot he datatoken and message that users. add a feature where you always check the most recent datatoken of the user. create a user email. post should include the username of the person posting. ive added a new field called email: @user1 in the category field. so that we can email this user with a reply to the advertisement. and that does not reveal the username of the person who posted. create a random number that represents the email. letters and numbers. e homecareservice has a id _id 6948f7d990ef38aa0dbf3bf9 with a email : @user1. start of by emailing the name of the person. then update it to the email. you can also , inject the message directly into the database and it will appear in the senders box. and you'll receive a confirmation in your inbox that the message was sent. if the person who receive the message doesnt reply. then the message dies. if they reply, you will know their identity. we now need the route to lookup the @user244 email. we can't send the other users datatoken. only their @user number you can leave your information and I can call you. or I can reply to your message by the same means. give me a @user233 to reply to ive update both username guest1 and kk with internal message . be careful not to confuse email with internalemail. email is the person profile email . internal message now we just need to map the message to the receiver and a copy to the sender. I dont see the message in the inbox. but I see it in the messages document in mongodb. what is the time stamp? (the time is not loading Automatically. capture the current time and assign it to the time stamp. dont let the user enter the time. two things to fix: 1. the username for the sent is not updated. so he never gets a message in his inbox. 2. the type is received for both documents . one should read sent and the other received. I received an email from @user23(aka guest) in the inbox of kk. if the user adds a space that cause a \n in the database , the data fails to load in messages. you need to define the @user in sessionStorage. so you can pull from that data. (done) create a post with internal message includeing the @user1. what does the model look like for homecareservices? it has the internal messaging . 1 each user needs an email. @user23, but it needs to be generated by a random number (done)
Next Steps
you now need to update each category and user : 2. the emails should use the @user23 instead of the username. but add the username in front of the @user23 . for example guest1 <@user23> 3. allow users to select if they want to hide their identity when replying to a post. or reveal their identity when replying to a post. also the person posting can guest1 <@user_P2PkoKQpDQVXwgv> kk <@user_AfdTzHtoZpDg8pu> username should still be username. recipient should use internal message. from : username. from internal message: @user_123 to internal message :@user_245 recipient should use you need to get away from using username .because username can change. dont change username. it doenst matter what you call the user, as long as it exists in the database all you want to for u
Solution
Insight
Date Resolved
save
Update Ticket
Cancel