about summary refs log tree commit diff
path: root/src/screens/Messages
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] Embed backwards compat (#4302)Eric Bailey2024-05-311-44/+1
|
* [🐴] Add labels to chats (#4293)Eric Bailey2024-05-311-0/+7
| | | | | | | | | | | * Add labels to chat list * Add to convo header * Prevent click through on PostAlert buttons * Fix space * Fix alignment
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-315-43/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add send via chat button to post dropdown (cherry picked from commit d8458c0bc344f993266f7bc7e325d47e40619648) * let usePostQuery take uris with DIDs (cherry picked from commit 16b577ce749fd07e1d5f8461e8ca71c5b874a936) * add embed preview in composer (cherry picked from commit 795ceb98d55b6a3ab5b83187a582f9656d71db69) * rm log (cherry picked from commit 374d6b8869459f08d8442a3a47d67149e8d9ddd4) * remove params properly, or at least as close to (cherry picked from commit c20e0062c2ca4d9c2b28324eee5e713a1a3ab251) * show images in preview (cherry picked from commit 5bb617a3ce00f67bfc79784b2f81ef8dcb5bfc25) * Register embed immediately (cherry picked from commit ee120d5438a2c91c8980288665576d6a29b4c7e7) * Add hover to match embeds (cherry picked from commit 5297a5b06e499f46a9f6da510124610005db2448) * Update post dropdown copy (cherry picked from commit bc7e9f6a4303926a53c5c889f1f1b136faf20491) * Embed preview style tweaks (cherry picked from commit 9e3ccb0f25ac2f3ce6af538bb29112a3e96e01b1) * use hydrated posts from API and just use postembed component (cherry picked from commit cc0b84db87ca812d76cc69f46170ae84cfdde4ef) * fix type error (cherry picked from commit 9c49b940e1248e8a7c3b64190c5cb20750043619) * undo needless export (cherry picked from commit 1186701c997c50c0b29a809637cb9bc061b8c0a0) * fix overflow (cherry picked from commit 8868d5075062d0199c8ef6946fabde27e46ea378) --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] send record via link in text (Record DMs - base PR) (#4227)Samuel Newman2024-05-313-16/+73
| | | | | * send record via link in text * re-trim text after removing link
* add prop to ListImpl for disabling `content-visibility` style (#4236)Hailey2024-05-301-0/+3
| | | | | | | | | | | | | | | | | * add prop to `ListImpl` for `content-visibility` style * change to `disableContentVisibility` * lint * tweaks * Keep the fix more general * Clarify ambiguity --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Replace getAgent() with reading agent (#4243)dan2024-05-282-5/+5
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* [🐴] update convo list from message bus (#4189)Samuel Newman2024-05-242-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [🐴] Don't submit the message on return press when on a phone (web input) ↵Hailey2024-05-231-3/+7
| | | | | | | | | | | | | | | (#4203) move this to the `onKeyDown` prop Revert "do the same for tablets" This reverts commit 47c709e2734f2acf34f89dd5aca42a75a2b56270. do the same for tablets don't submit message if the device is a phone on web move `onTouchStart` to `browser.ts` globals
* [🐴] Fix Firefox send button positioning (#4201)Hailey2024-05-231-2/+4
| | | | | | | | | | | | | | | * use `align_center` * revert * account for firefox textarea size differences set to `38` remove some extra stuff equal height on all platforms * use atom
* [🐴] add link to chat settings from main settings (#4197)Samuel Newman2024-05-231-1/+1
| | | | | | | * add link to chat settings from main settings * move to beneath saved feeds weird ass diff on this commit lol
* Decrease thickness of border on message input (#4196)Hailey2024-05-232-2/+2
|
* stop line breaks for timeelapsed (#4191)Samuel Newman2024-05-231-0/+2
|
* implement a safari hack for ime (#4186)Hailey2024-05-231-0/+20
| | | | | | | | | remove debug logs use a better hack implement a safari hack extract `isSafari` and `isFirefox` to a global variable
* Handle zero bottom inset on iOS (#4184)Hailey2024-05-221-3/+3
| | | | | * set message padding to a minimum of 60 and max of 70 * adjust range
* Add note to clarify "allow new messages from" setting (#4166)Samuel Newman2024-05-221-4/+20
|
* [🐴] Support Japanese (et al.) IME in message input on web (#4159)Hailey2024-05-211-1/+10
| | | | | | | * support japanese et al. IME * update comment * nit
* [🐴] Fix convo menu overlap (web) (#4153)Samuel Newman2024-05-211-26/+19
| | | | | * add right padding to chatlistitem to avoid overlap * reduce padding amount
* Make list end text customizable (#4145)Hailey2024-05-201-0/+2
| | | | | | | | | | | | | * only try to initialize once * nit * change to `You have reached the end` * make the text at end of list customizable * make the text at end of list customizable * update intl
* use same visuals for notification sounds setting as the allow messages from ↵Hailey2024-05-201-15/+41
| | | | (#4141)
* Add convoId as key to Convo wrapper (#4140)Eric Bailey2024-05-201-1/+1
|
* [🐴] Add end of list text, fix threshold (#4138)Eric Bailey2024-05-201-1/+3
| | | | | * Add end of list text * onEndReachedThreshold
* [🐴] set layout height in `onLayout` (#4135)Hailey2024-05-201-12/+22
| | | | | * set layout height in `onLayout` * keep setting it in `onScroll` too
* remove DMs gate (#4112)Samuel Newman2024-05-204-32/+0
|
* [🐴] Empty chat prompt (#4132)Eric Bailey2024-05-202-10/+16
| | | | | | | | | | | | | | | | | | | * Add empty chat pill * Tweak padding * move to `components`, place inside `KeyboardStickyView` * cleanup unused vars * add a new animation type * (unrelated) add haptic to long press * adjust shrink and pop --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Prevent flash upon first message (#4133)Eric Bailey2024-05-201-1/+5
| | | | | | | | | | | | | * Prevent flash upon first message * set `hasScrolled` to true when sending a message if it isn't already true * revert other change * lint --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Add new chat metrics (#4130)Hailey2024-05-202-12/+17
| | | | | | | | | | | | | | | * 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
* [🐴 Tweak appeal button styles (#4128)Eric Bailey2024-05-201-5/+4
| | | | | * Tweak styles * Tweak copy
* [🐴] Appeal form for disabled DMs (#4126)Samuel Newman2024-05-201-3/+128
| | | | | | | * add appeal dialog * use useMutation for the labels on me dialog * replace text button with small button
* Some styling of empty list chats states (#4124)Eric Bailey2024-05-201-27/+84
|
* [🐴] Handle deleted accounts, restructure ChatListItem (#4114)Eric Bailey2024-05-201-99/+120
| | | | | | | | | | | | | * Handle deleted accounts, restructure ChatListItem * Remove triggerOpacity option * account for handle change in screen reader * simplify the check --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Make message input layout resizing synchronous (#4123)Hailey2024-05-201-26/+46
| | | | | | | | | | | * make input resizing synchronous * remove a log * make scroll enable/disable sync * lint * start as undefined
* [🐴] Adjust content height whenever the emoji picker keyboard is opened or ↵Hailey2024-05-201-5/+18
| | | | | | | closed (#4120) * properly resize whenever the emoji keyboard is opened * properly resize whenever the emoji keyboard is opened
* [🐴] Fix load state for disabled chats (#4119)Eric Bailey2024-05-201-1/+1
|
* [🐴] Screenreader accessibility actions for individual chat items (#4116)Hailey2024-05-201-2/+16
| | | | | | | | | | | | | * add accessibility tap to messages * add a label for the accessibility action * improve accessibility actions on chat list items * adjust types * more consistent wording * make the strings localizable
* [🐴] Fully implement keyboard controller (#4106)Hailey2024-05-193-107/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "[🐴] Ensure keyboard gets dismissed when leaving screen (#4104)" This reverts commit 3ca671d9aacb6137e10e2cf3cd9bc170af798389. * getting somewhere * remove some now nuneeded code * fully implement keyboard controller * onStartReached check * fix new messages pill alignment * scroll to end on press * simplify pill scroll logic * update comment * adjust logic on when to hide the pill * fix backgrounding jank * improve look of deleting messages * add double tap on messages * better onStartReached logic * nit * add hit slop to the gesture * better gestures for press and hold * nits
* disable min shell on convo screen (#4103)Samuel Newman2024-05-191-0/+2
|
* [🐴] Minor nits (#4102)Hailey2024-05-183-6/+18
| | | | | | | | | * set a better size for `initialNumToRender` * memo list items * scroll to end on both platforms * rev
* [🐴] 🤞 This should be the final message list change - Use ↵Hailey2024-05-183-81/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `dispatchCommand` so we don't need to know the content height (#4090) * handle keyboard scroll more elegantly simplify missing `runOnUI` better naming to avoid confusion nit remove unused function use `dispatchCommand` in `onContentSizeChanged` as well use `dispatchCommand` so we don't need to know the content height remove `isMomentumScrolling` * better timing * nit * another nit * handle message input resizes better too * account for other size changes like emoji keyboard opening * one last nit * just adding comments * account for dragging * make it easier to read * add a comment * 🤦‍♀️ * remove a little bit of that padding at the top
* [🐴] Mod disabled (#4089)Eric Bailey2024-05-172-5/+38
| | | | | * Handle send failures * Add chat disabled state
* [🐴] New chat dialog refresh (#4071)Eric Bailey2024-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Checkpoint, header styled, empty * Checkpoint, styles * Show recent follows in initial state, finesse some styles * Add skeleton * Add some limits * Fix autofocus on web, use bottom sheet input on native * Ignore type * Clean up edits * Format * Tweak icon placement * Fix type * use prop for dismissing keyboard --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Block Info (#4068)Hailey2024-05-173-190/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * get the damn thing in there 😮‍💨 * more cleanup and little fixes another nit nit small annoyance add a comment only use `scrollTo` when necessary remove now unnecessary styles * move padding out * add unblock function * rm need for moderationpts * ? * ?? * extract leaveconvoprompt * move `setHasScrolled` to `onContentSizeChanged` * account for block footer * wrap up nit make sure recipient is loaded before showing refactor to hide chat input typo squigglie add report dialog finalize delete implement custom animation add configurable replace animation add leave convo to block options * correct functionality for report * moev component to another file * maybe... * fix chat item * improve * remove unused gtmobile * nit * more cleanup * more cleanup * fix merge * fix header * few more changes * nit * remove old
* 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-5/+7
| | | | | | | | | | | | | * 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-172-3/+4
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* [🐴] Reduce header size (#4078)Samuel Newman2024-05-172-38/+49
| | | | | | | * make text input container smaller * make header much smaller * improve web styling
* [🐴] Additional tweaks to the message list (#4075)Hailey2024-05-172-85/+57
| | | | | | | | | | | | | | | | | | | * more cleanup and little fixes another nit nit small annoyance add a comment only use `scrollTo` when necessary remove now unnecessary styles * move `setHasScrolled` to `onContentSizeChanged` * account for block footer
* [🐴] 60 FPS Keyboard (#4066)Hailey2024-05-161-32/+45
| | | | | | | | | | | | | | | | | * use `scrollTo` * let the animated reaction handle keyboard scroll * no need for `requestAnimationFrame` now * 'worklet' * nit * fixes * more nits * bool check
* [🐴] Input hover and focus styles (#4064)Hailey2024-05-162-11/+36
| | | | | | | * styles for native input * web focus/hover * nit
* Fix error styles (#4063)Eric Bailey2024-05-161-9/+5
|
* [🐴] Tweak header styles (#4053)Eric Bailey2024-05-161-13/+17
| | | | | | | | | * Tweak desktop header styles * Tweak mobile * Bump icon size * Remove unused else