about summary refs log tree commit diff
path: root/src/state/queries/messages/list-converations.ts
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] update convo list from message bus (#4189)Samuel Newman2024-05-241-196/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | * update convo list from message bus * don't increase unread count if you're the sender * add refetch interval back * Fix deleted message state copy * only enable if `hasSession` * Fix logged out handling * increase refetch interval to 60s * request 10s interval when message screen active * use useAppState hook for convo resume/background * Combine forces * fix useFocusEffect logic --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Invalidate list convos query on block (#4171)Samuel Newman2024-05-221-21/+23
| | | | | * more memoization * invalidate listconvos query on block
* Ensure deleted chats don't count towards unread (#4129)Eric Bailey2024-05-201-1/+4
|
* Disable badge incrementing for DMs (#4088)Hailey2024-05-171-13/+4
| | | | | | | | | | | * disable badge increments for dms * revert decrementing in js for dms * reset badge on read notifications * remove some other code * prevent duplicate notification events
* [🐴] don't include blocked convos in unread count (#4082)Samuel Newman2024-05-171-3/+21
| | | | | | | | | | | | | * 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>
* [🐴] Decrement app badge when opening unread chat (#4040)Hailey2024-05-161-4/+13
| | | | | | | | | * decrement badge count for chats * handle decrement in `useMarkAsRead` * remove async * oops
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-141-1/+32
| | | | | | | | | | | * 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)
* [🐴] Swap in new package, update usages (#3992)Eric Bailey2024-05-141-12/+6
| | | | | | | * Swap in new package, update usages * Remove uneccessary patch * Override type in safe place
* actually optimistic mark as read (#3917)Samuel Newman2024-05-081-1/+0
|
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-081-0/+17
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Unread messages badge (#3901)Samuel Newman2024-05-071-2/+105
| | | | | | | | | | | | | | | | | | | | | * 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>
* add focus refresh + polling (#3846)Samuel Newman2024-05-031-1/+2
|
* [Clipclops] 2 Clipped 2 Clopped (#3796)Eric Bailey2024-05-011-0/+28
* 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>