about summary refs log tree commit diff
path: root/src/screens/Messages/Conversation
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] Embed backwards compat (#4302)Eric Bailey2024-05-311-44/+1
|
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-314-42/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] 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
* Decrease thickness of border on message input (#4196)Hailey2024-05-232-2/+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
* [🐴] Support Japanese (et al.) IME in message input on web (#4159)Hailey2024-05-211-1/+10
| | | | | | | * support japanese et al. IME * update comment * nit
* Add convoId as key to Convo wrapper (#4140)Eric Bailey2024-05-201-1/+1
|
* [🐴] 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-201-5/+0
|
* [🐴] Empty chat prompt (#4132)Eric Bailey2024-05-201-8/+11
| | | | | | | | | | | | | | | | | | | * 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-201-1/+0
| | | | | | | | | | | | | | | * 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
* [🐴] 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
|
* [🐴] 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-181-3/+8
| | | | | | | | | * 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
* [🐴] Block Info (#4068)Hailey2024-05-172-189/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] 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
|
* [🐴] Error recovery (#4036)Eric Bailey2024-05-162-44/+36
| | | | | | | | | | | | | | | | | | | | | * Handle block state when sending messages * Handle different pending failures * Use existing profile data to handle blocks * Better cleanup, leave room for more * Attempt recover upon next send * Reset pending failure * Capture unexpected error * Gracefully handle network errors and recovery * Re-align error components and types * Include history fetching in recoverable states
* [🐴] Only scroll down one "screen" in height when foregrounding (#4027)Hailey2024-05-161-12/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maintain position after foreground * one possibility * don't overscroll when content size changes. * ignore the rule on 1 item * fix * [🐴] Pill for additional unreads when coming from background (#4043) * create a pill with some animatons * add some basic styles to the pill * make the animations reusable * bit better styling * rm logs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * import --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [🐴] Remove keyboard controller lib (#4038)Hailey2024-05-163-68/+89
| | | | | | | | | | | | | | | | | | | * remove library * implement using just reanimated * always return false for `keyboardIsOpening` on web * undo comment * handle input focus scroll more elegantly * add back minimal shell toggle on mobile web * adjust initialnumtorender * oops * nit
* [🐴] Tweak padding of web input (#4033)Hailey2024-05-161-3/+8
| | | | | * tweak more * nit
* [🐴] Copy tweaks (#4042)Hailey2024-05-161-1/+1
| | | | | | | | | * `notifications` -> `conversation` * `users` -> `people` * `other participants` -> `the other participant` * rename
* [🐴] Disable hover card when blocked or blocking (#4041)Hailey2024-05-161-0/+1
|
* [🐴] A few tweaks to message input on native (#4035)Hailey2024-05-161-1/+9
| | | | | | | | | * tweaks * only apply the padding on ios * use a hitslop of 10 instead * version bump
* [🐴] Tweak list on mobile web (#3958)Hailey2024-05-153-9/+20
| | | | | | | | | | | | | * mobile web tweaks chat screen * revert a change * remove unnecessary prop * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Better retry styling (#4032)Eric Bailey2024-05-152-8/+1
| | | | | | | | | | | | | * Pass whole object to MessageItem for clarity * Add retry to pending-message * Style send failure, retry * Group pending messages * Remove todos * Fix types with fake message
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-141-32/+72
| | | | | | | | | | | * 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)
* [🐴] show deleted account for `missing.invalid` (#4014)Hailey2024-05-141-4/+11
| | | | | * show deleted account for `missing.invalid` * sigh
* [🐴] Message drafts (#3993)Samuel Newman2024-05-142-4/+20
| | | | | | | | | | | * drafts * don't throw if no convo ID * Remove labs package --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Make status checks easier, fix load state (#4010)Eric Bailey2024-05-142-17/+15
| | | | | | | | | * Make status checks easier, fix load state * Make naming more clear * Split up types for easier re-use * Replace hacky usage
* dont send message if >1000 graphemes (#3995)Samuel Newman2024-05-132-4/+17
|
* [🐴] Mutate data instead of invalidating queries when muting or unmuting ↵Hailey2024-05-101-16/+11
| | | | | | | | | | | | | | | | | | | | | (#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
* [🐴] Move `KeyboardAvoidingView` up to the main screen (#3953)Hailey2024-05-102-44/+42
|
* [🐴] Adjust messages list styles (#3945)Hailey2024-05-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * some initial tweaks * tweaks * more tweaks * tweak chat header * properly align placeholders * tweak web header * one more... * remove extra loading states from chat * limit line count for display name * Tweaks styles (#3949) * Adjust sizing * Consistent font size * Adjust header * oops * fix accessibility in list * don't use `identifier` for notifications, use `dates` instead --------- Co-authored-by: Eric Bailey <git@esb.lol>