Eric Bailey
6efe90a5f5
[ 🐴 ] Block states, read only ( #4022 )
...
* Refactor ChatListItem for mod state
* Refactor Conversation Header for mod state
* Invalidate query for list when blocking/unblocking
* Remove unused prop, restore border
* Add mutations, hook up profile shadow to list query, use shadow-aware query for convo (#4024 )
2024-05-14 20:07:53 -05:00
Samuel Newman
5af61ca4e4
[ 🐴 ] Settings screen ( #3830 )
...
* create settings screen + api
* update api package
* use putrecord API with validate false
* create new RadioGroup component
2024-05-14 18:57:16 +01:00
Eric Bailey
9173be686c
[ 🐴 ] Swap in new package, update usages ( #3992 )
...
* Swap in new package, update usages
* Remove uneccessary patch
* Override type in safe place
2024-05-14 09:22:09 -05:00
Hailey
f928e0a547
[ 🐴 ] Mutate data instead of invalidating queries when muting or unmuting ( #3946 )
...
* mutate for mutes
* mutate data for mutes
* add initial data, `useConvoQuery` in `ConvoMenu`
* `useInitialData`
* don't use `identifier` for notifications, use `dates` instead
* better implementation
* simplify
* simplify
* fix types
2024-05-10 08:46:51 -07:00
Samuel Newman
750a5c899b
actually optimistic mark as read ( #3917 )
2024-05-08 21:19:45 +01:00
Samuel Newman
38198fdf7f
[ 🐴 ] Mark as read in convo menu ( #3913 )
...
* add mark as read option
* optimistic update + link up menu
* rm messageid
2024-05-08 15:48:05 +01: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
Samuel Newman
ce02a41163
add focus refresh + polling ( #3846 )
2024-05-03 17:57:20 +01: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