-
user can register. afer registering, user will be automatically logged in, we will store login info to localstorage (for login persistance) and redirected to inbox page
-
user can login and after login we will save the login information in localstorage (for login persistance) and redirect user to inbox
-
load sidebar messages from conversation API and implement load more feature
-
load specific conversation messages when user clicks on it and implement load more feature
-
when user sends message, a) if conversation id is present, update conversation table and also inserts into messages table b) if conversation id is missing, get conversation id using filter _ if conversation id exists, then update that conversation and add to messages table _ if conversation id is missing, insert that conversation and add to messages table
-
sidebar conversation list scroll - sort by latest first and when user loads more, bring previous "10 conversations sorted by latest first" and pushed into the conversations array
-
messages list scroll - bring "10 latest messages per request sorted by oldest first". when user loads more, "bring previous 10 messages sorted again by oldest first" and unshift into the array
- register
- login
- get list of users other than requesting user
- update conversation
- insert conversation
- find conversation
- list conversation
- list messages by conversation id
- send message (insert messages into messages table)