Commit graph

138 commits

Author SHA1 Message Date
Chewbacca
c453bbb687 Update Chat with last_message when current_user is sending a message 2022-11-10 16:41:24 -05:00
Chewbacca
93a696a72f Re-sort the ChatList when new messages come in 2022-11-10 15:42:59 -05:00
Chewbacca
15c22863d7 Fetch relationships everytime we fetch a single chat 2022-11-10 11:56:36 -05:00
Chewbacca
98b2fdf9a4 Improve emoji to support custom 2022-11-09 13:17:10 -05:00
Chewbacca
e7106a35b3 Refactor 'createChatMessage' mutation 2022-11-09 12:24:44 -05:00
Chewbacca
2460d85460 Add more tests to chats query 2022-11-09 10:28:15 -05:00
Chewbacca
f5ddd586f6 Add 2 minute deletion duration for testing 2022-11-09 08:37:50 -05:00
Chewbacca
357e46248e Always refetch and re-hydrate the Chat 2022-11-07 15:40:19 -05:00
Chewbacca
2ecf837656 Remove changing of screen when updating a chat 2022-11-04 09:49:35 -04:00
Chewbacca
8d99cfd24f Invalid individual Chat query on chat acceptance 2022-11-04 07:37:05 -04:00
Chewbacca
bc65331cbb Make sure relationship is fetched in Chat Main Page 2022-11-03 16:54:18 -04:00
Chewbacca
51c01bfc04 Keep fresh messages 2022-11-03 13:55:33 -04:00
Alex Gleason
27b5211203
Merge remote-tracking branch 'origin/chats' into chats 2022-11-02 16:08:39 -05:00
Alex Gleason
8cd84b6128
Chats: accepting_messages --> accepts_chat_messages 2022-11-02 15:10:13 -05:00
Chewbacca
54466f1293 Move query into Context 2022-11-02 15:28:16 -04:00
Alex Gleason
4d9f7fec32
Chats: normalize chat messages again so attachments don't break 2022-11-02 14:23:39 -05:00
Alex Gleason
4dc0ab2d00
Chats: make Truth Policies conditional 2022-11-02 14:02:43 -05:00
Alex Gleason
239b2af553
Chats: make message_expiration optional (for Pleroma compatibility) 2022-11-02 13:53:41 -05:00
Chewbacca
650387dc77 Add Policy Modal 2022-11-01 13:22:29 -04:00
Chewbacca
b33b32d9dc Update 'last_message' if the user deletes it 2022-11-01 09:44:21 -04:00
Chewbacca
24bca458bd Add tests for chats query 2022-10-28 13:01:39 -04:00
Chewbacca
3e2888eb75 Handle unreadCount when messages are deleted 2022-10-27 13:59:54 -04:00
Chewbacca
75233526cc Update duration design for Widget 2022-10-26 13:28:50 -04:00
Chewbacca
54363e24a9 Add ability to update deletion duration 2022-10-26 13:08:02 -04:00
Chewbacca
22f3dd9444 Disable chatMessages query if blocked 2022-10-25 13:10:53 -04:00
Chewbacca
9eb09e4aab Remove Chat Silence feature from web 2022-10-25 08:23:33 -04:00
Chewbacca
c9424cda76 Merge remote-tracking branch 'origin/develop' into chats 2022-10-24 12:25:35 -04:00
Alex Gleason
4296772093
Support TruthSocial v2 ads 2022-10-20 16:29:14 -05:00
Justin
c41b71c76c Invalidate query cache when new chats come in 2022-10-05 15:15:16 -04:00
Justin
4447a3cda4 Convert ChatMessageList to Virtuoso 2022-10-04 10:48:37 -04:00
Justin
c63ed1af15 Refactor Chat Settings and add into Preferences page 2022-09-30 13:01:49 -04:00
Justin
65cdaeb886 Fix query key when not search query is present 2022-09-30 10:28:19 -04:00
Justin
d40fe483ef Push accounts into Redux store 2022-09-29 13:36:35 -04:00
Justin
b590c062aa Show Skeleton when changing chats 2022-09-29 13:13:10 -04:00
Alex Gleason
d6e107dd0d
Chats: do routing a simpler way (keep context wrapper but set chat from route) 2022-09-28 15:38:05 -05:00
Alex Gleason
3ce5925280
useChat --> useChatActions 2022-09-28 15:20:59 -05:00
Justin
002fef27a3 Add StatContext to store global stat state 2022-09-27 16:05:19 -04:00
Justin
058d0cec0b Merge remote-tracking branch 'origin/develop' into chats 2022-09-27 15:43:30 -04:00
Justin
17c2958df1 Use query key system 2022-09-27 15:42:24 -04:00
Justin
facd4e95f5 Add tests for new Who To Follow panel 2022-09-27 09:58:49 -04:00
Justin
1d69b66e4b Use React Query for suggestions 2022-09-26 15:22:00 -04:00
Justin
0003b7323a Fix errant fetches to the silence endpoint 2022-09-23 09:48:52 -04:00
Justin
0576565c83 Merge remote-tracking branch 'origin/chats' into chats 2022-09-23 09:04:05 -04:00
Justin
e8b547565e Add options to the ChatListItem 2022-09-23 09:04:01 -04:00
Alex Gleason
10b9a4eb4e
Chats: don't make mark as read hit the API again 2022-09-22 16:34:20 -05:00
Alex Gleason
075cb15940
Add utils/queries, refactor streaming 2022-09-22 16:28:05 -05:00
Alex Gleason
c12999a438
Chats: use v2 endpoint if supported 2022-09-22 16:06:15 -05:00
Alex Gleason
624d139a5a
Chats: MAKE WEBSOCKET STREAMING WORK!!! 2022-09-21 18:26:18 -05:00
Alex Gleason
15a5c01cef
Chats: ['chats'] --> ['chats', 'search'] 2022-09-21 13:47:46 -05:00
Alex Gleason
d7243c0e91
Merge remote-tracking branch 'origin/develop' into chats 2022-09-19 13:01:40 -05:00
Justin
4352d17217 Add snooze icon to ChatList 2022-09-16 08:57:09 -04:00
Justin
8e35d1dd92 Improve infinite scroll 2022-09-15 10:49:09 -04:00
Justin
ea1583dcac Fix chat silence bug 2022-09-13 16:24:19 -04:00
Justin
56c617bd32 Merge branch 'alex-chats' into chats 2022-09-12 14:50:02 -04:00
Justin
a68aeb8464 Start changing the way search works 2022-09-12 14:42:06 -04:00
87877a3f96 TS/functional: Emoji picker
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-11 19:28:12 +02:00
Justin
1c179cd4a0 Add error states 2022-09-08 12:47:19 -04:00
Alex Gleason
271bc271f7
Chats: normalize chat messages from the API 2022-09-01 13:17:30 -05:00
Alex Gleason
2f5caad67f
Chats: use compareId to sort messages (fix Pleroma) 2022-09-01 13:17:30 -05:00
Justin
c63fdec916 Reset state on failure 2022-08-31 13:22:43 -04:00
Justin
5dd44d3094 Add last_message_id param to API 2022-08-31 13:22:18 -04:00
Justin
2a02f6dcc7 Rename snooze endpoint 2022-08-31 13:22:18 -04:00
Justin
01167af69e Add infinite scroll to ChatList 2022-08-31 13:22:16 -04:00
Justin
ba2ffd1501 Snooze 2022-08-31 13:21:43 -04:00
Justin
a2e2d60fc7 Add Message List Intro component 2022-08-31 13:21:43 -04:00
Justin
0cb0e8af9e Add ability to leave chat 2022-08-31 13:21:43 -04:00
Justin
8492cc59e2 Add ability to accept chat 2022-08-31 13:21:43 -04:00
Justin
1ed1f3fd2e Add ability to delete message 2022-08-31 13:21:42 -04:00
Justin
84dc06db42 d 2022-08-31 13:20:54 -04:00
Justin
3a48082dc9 Remove old React Query stuff 2022-08-31 13:20:54 -04:00
Justin
f16da850fd Add React Query 2022-08-31 13:20:53 -04:00
Alex Gleason
27581fa776
Ads: fix expiry filter logic 2022-08-30 08:57:44 -05:00
Alex Gleason
d5a066050f
Ads: move isExpired to tested utils function 2022-08-26 10:14:56 -05:00
Alex Gleason
f4af1687bf
Filter out expiring ads 2022-08-26 09:48:49 -05:00
Alex Gleason
491c0e9152
EmbedModal: react-query, add useEmbed 2022-08-21 12:37:14 -04:00
Justin
6c03b6ddd3 fix tests 2022-08-10 14:02:29 -04:00
Justin
4d98046627 Improve types 2022-08-10 13:27:09 -04:00
Justin
b377689ed2 Grammar fix 2022-08-10 10:34:12 -04:00
Justin
b2530dadd5 Convert trends to React Query 2022-08-10 09:35:07 -04:00
Justin
e72476d577 Update suggestions query with new api hook 2022-08-10 08:46:00 -04:00
Justin
ae0fd07580 Use v2 suggestions endpoint for Onboarding 2022-08-10 08:39:39 -04:00
Alex Gleason
28d5461295
Fix react-query tests 2022-08-09 11:05:00 -05:00
Alex Gleason
8eec8f3a09
react-query: use legacy API client with hooks 2022-08-09 10:24:43 -05:00
Justin
6b297c3a7e Add tests 2022-08-08 15:53:21 -04:00
Justin
7ac18c0951 Lint 2022-08-08 10:29:03 -04:00
Justin
7836698dc2 Add React Query 2022-08-08 10:29:02 -04:00
Alex Gleason
b02141874e
Show ads in feed 2022-08-01 22:49:16 -05:00
Alex Gleason
92a5893f83
Add react-query 2022-08-01 20:13:02 -05:00