I refactored the persistance to useMessages.
- Needs 2 breaks, 1 going from dual to 1 and 1 going from 1 to only convs
- Remove unused functions in Header like `handleRestoreConversation`
- The top conversations can go off screen. Need to auto minimize convs on the left or right side when a new one opens
- allow minimizing in min mode
- If header missing in min mode then show the X on conversations
- Also minimize for convs
- Clicking X on Conversations should not close all messages. Should only affect the Conv List closing
Discuss
- Remove useEffect from useMessages
- This logic can be handled in the Header where it is rendered
- I’ve had lots of issues with useEffects in hooks before
[https://www.loom.com/share/99e3ea5851dc47efa0c7e3e76584625d](https://www.loom.com/share/99e3ea5851dc47efa0c7e3e76584625d "smartCard-inline")
Refactor
- Move sockets to app so they can listen in the background
- Badge App for new messages
- Add to user context like how pending notifications works
- Put the current functions in the useMessages hook
- Make sure cards are same width
- Robo avatar missing from messaging. Look at how Conversations loads avatar and copy that method.
- Slack follow up
- [https://www.loom.com/share/b7dc386102114efca99dc9fcb66589da](https://www.loom.com/share/b7dc386102114efca99dc9fcb66589da "")
- Min Mode just stack the left/right ontop of eachother in minimized
- 2 break points
- This of this as 3 modes. 1 with left/right minimized, 1 that merges both left/right into 1 minimized stack, and 1 for min mode that does not separate the minimized at all using the same components already there
[https://www.loom.com/share/fedfeb6fb3ae4041bcd7c0d84ae46aa2](https://www.loom.com/share/fedfeb6fb3ae4041bcd7c0d84ae46aa2 "")
- Zindex issue
- Bug when switching mobile to normal I think related to messages
- Left is missing, the messages should not show over the Conversations list
- Limit minimizations to 4, 2left 2 right, and 4 stacked
- Header covers the X when messages are too high
- `getConversations` instead of conversations
- Fix the avatars on conversations on messages, match how conversations shiws
- remove useDrag please