about summary refs log tree commit diff
path: root/src/state/queries/messages
Commit message (Collapse)AuthorAgeFilesLines
* fix: typo in filename list-converations (#7036)Renan Mav2024-12-104-4/+4
|
* Reduce `listConvos` requests (#6378)Eric Bailey2024-11-152-10/+45
| | | | | | | | | | | | | * Reduce page size for request * Remove refetch interval entirely * Add comment * Optimistically mark as read * Drop default active poll interval to 60s from 5min * Only optimistically update unread count if success
* Sort imports (#6009)dan2024-10-291-1/+1
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Throttle instead of debounce (#4456)Samuel Newman2024-06-101-2/+6
| | | | | | | | | | | * throttle instead of debounce * trailing: true * Fix throttle call --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* debounce refetching listconvos (#4455)Samuel Newman2024-06-101-3/+16
|
* Use recent convos for share via dialog (#4352)Eric Bailey2024-06-041-1/+6
|
* Replace getAgent() with reading agent (#4243)dan2024-05-286-23/+18
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* [🐴] update convo list from message bus (#4189)Samuel Newman2024-05-242-196/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] Add new chat metrics (#4130)Hailey2024-05-201-1/+1
| | | | | | | | | | | | | | | * remove a comment * add types for event, add log to profile button * add `chat:open` * add to chat list items * fix types * oops * oops 2.0
* Ensure deleted chats don't count towards unread (#4129)Eric Bailey2024-05-201-1/+4
|
* [🐴] DM button on profile (#4097)Samuel Newman2024-05-201-1/+31
| | | | | | | | | | | | | * add profile button * separate out button to component * normalise subscribe to labeller button size * infinite staletime * use Link rather than Button and change icon * adjust icon position
* 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
* Set chat declaration upon signup (#4084)Eric Bailey2024-05-171-2/+0
|
* [🐴] 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>
* [🐴] NUX (#4062)Samuel Newman2024-05-171-1/+21
| | | | | | | | | | | | | | | | | | | | | | | * remove type assertion * DMs NUX * delete button for testing * tweak styles and copy * rm log * style tweaks * reduce amount of words * Fix not showing on first load * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* 100% Real Dealβ„’ (#4070)Eric Bailey2024-05-161-1/+1
|
* Reset leave chat optimistic update if fails (#4058)Eric Bailey2024-05-161-1/+17
|
* [🐴] 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
* [🐴] infinite stale time (#4051)Hailey2024-05-161-0/+2
|
* [🐴] 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)
* [🐴] Settings screen (#3830)Samuel Newman2024-05-141-0/+64
| | | | | | | | | * create settings screen + api * update api package * use putrecord API with validate false * create new RadioGroup component
* [🐴] Swap in new package, update usages (#3992)Eric Bailey2024-05-147-67/+38
| | | | | | | * Swap in new package, update usages * Remove uneccessary patch * Override type in safe place
* [🐴] Mutate data instead of invalidating queries when muting or unmuting ↡Hailey2024-05-103-57/+62
| | | | | | | | | | | | | | | | | | | | | (#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
* actually optimistic mark as read (#3917)Samuel Newman2024-05-082-5/+9
|
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-082-7/+22
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Unread messages badge (#3901)Samuel Newman2024-05-072-3/+140
| | | | | | | | | | | | | | | | | | | | | * 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] Clop menu, leave clop, mute/unmute clop (#3804)Samuel Newman2024-05-023-1/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [Clipclops] 2 Clipped 2 Clopped (#3796)Eric Bailey2024-05-014-0/+99
* 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>