Hello, I'm trying to add a method in my messaging (Channels, ASGI/Daphne) application which allows the sender of the message to edit or change their message (not the receiver). Here is my views https://pastebin.com/z42DM21Q. consumers https://pastebin.com/H8j0KDmE. routing https://pastebin.com/nuL6s8QA. urls https://pastebin.com/v21LiD7Y. serializers https://pastebin.com/95cRN141. Please I need guidance on this. If you can even provide some links/tutorials etc., that would be good
#method for editing messages
13 messages · Page 1 of 1 (latest)
Give each message an ID on the server and maintain the message/author mapping. Then allow the author to edit the message by submitting the edited message with its ID.
Thanks. Will this go inside consumers and templates?
Ofcourse.
Thank you
Here is my consumers https://pastebin.com/kQgzjeq8 and messenger.html https://pastebin.com/gc9B1KAj. I don't think I did my JavaScript correctly though
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
You have code to edit messages but not code to create them. When is the message_id first created?
Are you referring to my consumers?
Not sure I follow
What do you mean by code to create the messages, I thought I already did that?
If you could please elaborate what you mean
Or are you referring to self.send() in the async ref receive?
Where's the code that initially creates/assigns the message id ?