Eric Bailey
56f713077f
[ 🐴 ] Reorg convo files ( #3909 )
...
* Remove unused prop
* Reorganize
2024-05-07 19:46:59 -07:00
Samuel Newman
4fe5a869c3
[ 🐴 ] Unread messages badge ( #3901 )
...
* add badge
* move stringify logic to hook
* add mutation hooks
* optimistic mark convo as read
* don't count muted chats
* Integrate new context
* Integrate mark unread mutation
* Remove unused edit
---------
Co-authored-by: Eric Bailey <git@esb.lol>
2024-05-07 21:23:09 -05:00
Eric Bailey
165fdb7049
[ 🐴 ] Integrate global event bus ( #3904 )
...
* Conditionally run global event bus
* Add current convo id context, bundle providers
2024-05-07 20:25:58 -05:00
Eric Bailey
f78126e01a
[ 🐴 ] State transitions ( #3880 )
...
* Handle init/resume/suspend/background and polling
* Add debug and temp guard
* Make state transitions sync
* Make init sync also
* Checkpoint: confusing but working state machine
* Reducer-esque
* Remove poll events
* Guard fetchConvo
(cherry picked from commit 8385579d31500bb4bfb60afeecdc1eb3ddd7e747)
* Clean up polling, make sync
(cherry picked from commit 7f75cd04c3bf81c94662785748698640a84bef51)
* Update history handling
(cherry picked from commit b82b552ba4040adf7ead2377541132a386964ff8)
* Check for screen focus in app state listener
* Get rid of ad-hoc status checks
2024-05-07 17:54:52 -05:00
Eric Bailey
c9cf608f78
[Clipclops] External store, suspend/resume ( #3829 )
...
* Initial working external store
* Clean up WIP, explore suspend/resume
* Clean up state, bindings, snapshots, add some logs
* Reduce snapshots, add better logic check
* Bump interval a smidge
* Remove unused type
2024-05-02 20:57:51 -05:00
Samuel Newman
e19f882450
[Clipclops] Clop menu, leave clop, mute/unmute clop ( #3804 )
...
* convo menu
* memoize convomenu
* add convoId to useChat + memoize value
* leave convo
* Create mute-conversation.ts
* add mutes, remove changes to useChat and use chat.convo instead
* add todo comments
* leave convo confirm prompt
* remove dependency on useChat and pass in props instead
* show menu on long press
* optimistic update
* optimistic update leave + add error capture
* don't `popToTop` when unnecessary
---------
Co-authored-by: Hailey <me@haileyok.com>
2024-05-02 00:15:10 +01:00
Eric Bailey
538ca8dff1
[Clipclops] 2 Clipped 2 Clopped ( #3796 )
...
* Add new pkg
* copy queries over to new file
* useConvoQuery
* useListConvos
* Use useListConvos
* extract useConvoQuery
* useGetConvoForMembers
* Delete unused
* exract useListConvos
* Replace imports
* Messages/List/index.tsx
* extract getconvoformembers
* MessageItem
* delete chatLog and rename query.ts
* Update import
* Clipclop service (#3794 )
* Add Chat service
* Better handle deletions
* Rollback unneeded changes
* Better insertion order
* Use clipclops
* don't show FAB if error
* clean up imports
* Update Convo service
* Remove temp files
---------
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-05-01 10:14:41 -07:00