So i am creating a sort of roomate finder application with the help of rest framework and django primarily handling backend on my part, so i wish to implement chat functionality between matched users for which i have already created the match model, with user_1 to user_2 infering which send request to whom (user_1 sents request to user_2) and matched boolean field to authenticate if they are matched,kindly assist me in following things:
implement chat functionality in chat app using channels
only authenticated and matched user can chat for which i have created the match model in matches app, attachments need to be sent as well and saved to the database of message model
which is listed as:
sent_from,sent_to,msg_text,attachments(Imagefield)
please walk me through the process.