[ ] Message notifications - users need to see notifications when a user has messaged.
[x] Message badge should update with unread messages
[ ] Push notifications will come later
Fixes and enhancements
[x] keyboard closing on send
[x] Improve performance loading chat. Every time a chat loads it flickers loading the actual chat content. Loading-img is causing a bit of this
[x] Improve performance when sending a message. At the moment, the entire chat array is pushed through through a transformation function to add the correct dates in. This is overkill for just adding a single message as Angular re-renders the entire collection i think. Should just push another message to the bottom without and determine whether a date is added without transforming the whole array
[x] the inbox, to stay in-sync, fetches a new list of chats whenever component is focused, the http response is usually a 304. Would be good to detect the 304 and only re-render the list if the cache is stale
[x] Bugs with the chat to do with websocket/socket.io/background timer throttling - need to diagnose and work around
Couldn't find a fix to stop the keyboard closing so had to settle with a workaround, using the return key instead for sending messages that don't close the keyboard.
Features
Fixes and enhancements