Samuel Newman
3ca41e4efb
[ 🐴 ] Invalidate list convos query on block ( #4171 )
...
* more memoization
* invalidate listconvos query on block
2024-05-22 18:14:15 +01:00
Eric Bailey
22522090c2
Ensure deleted chats don't count towards unread ( #4129 )
2024-05-20 17:19:01 -05:00
Hailey
d2c81c9d3d
Disable badge incrementing for DMs ( #4088 )
...
* disable badge increments for dms
* revert decrementing in js for dms
* reset badge on read notifications
* remove some other code
* prevent duplicate notification events
2024-05-17 16:05:32 -07:00
Samuel Newman
f42f7fa035
[ 🐴 ] don't include blocked convos in unread count ( #4082 )
...
* don't include blocked convos in unread count
* Use moderateProfile
* Handle blocked state in chat list
* Fix logic formatting, add todo
---------
Co-authored-by: Eric Bailey <git@esb.lol>
2024-05-17 14:46:01 -05:00
Hailey
5e8650a204
[ 🐴 ] Decrement app badge when opening unread chat ( #4040 )
...
* decrement badge count for chats
* handle decrement in `useMarkAsRead`
* remove async
* oops
2024-05-16 12:15:35 -07:00
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
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
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
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