about summary refs log tree commit diff
path: root/src/screens/Messages
Commit message (Collapse)AuthorAgeFilesLines
* [Videos] Video player - PR #2 - better web support (#4732)Samuel Newman2024-08-071-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt some sort of "usurping" system * polling-based active video approach * split into inner component again * click to steal active video * disable findAndActivateVideo on native * new intersectionobserver approach - wip * fix types * disable perf optimisation to allow overflow * make active player indicator subtler, clean up video utils * partially fix double-playing * start working on controls * fullscreen API * get buttons working somewhat * rm source from where it shouldn't be * use video elem as source of truth * fix keyboard nav + mute state * new icons, add fullscreen + time + fix play * unmount when far offscreen + round 2dp * listen globally to clicks rather than blur event * move controls to new file * reduce quality when not active * add hover state to buttons * stop propagation of videoplayer click * move around autoplay effects * increase background contrast * add subtitles button * add stopPropagation to root of video player * clean up VideoWebControls * fix chrome * change quality based on focused state * use autoLevelCapping instead of nextLevel * get subtitle track from stream * always use hlsjs * rework hls into a ref * render player earlier, allowing preload * add error boundary * clean up component structure and organisation * rework fullscreen API * disable fullscreen on iPhone * don't play when ready on pause * debounce buffering * simplify giant list of event listeners * update pref * reduce prop drilling * minimise rerenders in `ActiveViewContext` * restore prop drilling --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* make some settings screens scrollable for accessibility (#4819)Hailey2024-07-241-3/+3
| | | | | * make settings scrollable for accessibility * nit
* Priority notifications (#4798)Samuel Newman2024-07-243-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new settings screen * bring back the spinner * add experimental language * fix typo, change leading * integrate priority notifications API * update package * use refetch instead of invalidateQueries * fix read-after-write issue by polling for update * add spinner for initial load * rm onmutate, it's overcomplicated * set error state eagerly * Change language in description Co-authored-by: Hailey <me@haileyok.com> * prettier * add `Toggle.Platform` * extract out mutation hook + error state * rm useless cache mutation * disambiguate isError and isPending * rm unused isError --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-234-4/+4
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* change `contentVisibility` to `contain` (#4752)Hailey2024-07-081-2/+2
|
* Unify label pills (#4676)Eric Bailey2024-07-031-1/+1
| | | | | | | | | | | | | | | * New label pills * Fix type errors, add default case * Remove negative margin, only works in some places * Fix alignment edge case * Add a bit of padding --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Only enable keyboard controller when necessary (#4483)Samuel Newman2024-06-111-0/+12
| | | | | | | | | | | | | | | | | | | * Only enable keyboard controller when necessary * make it screen only * rm keyboard padding * rm keyboardpadding file * revert using keyboard controller in composer * remove styles.outer (unnecessary for revert) * continue to use keyboard padding in the report dialog for dms --------- Co-authored-by: Hailey <me@haileyok.com>
* register the push token after request has been approved on android (#4481)Hailey2024-06-111-1/+3
| | | | | | | | | | | * register the push token after request has been approved on android * use a `0` string for badge count * Revert "use a `0` string for badge count" This reverts commit efac39861817f4237c58211f68ef266d919b4d40. * temporary fix
* Open convo menu when tapping on chat with deleted account (#4470)Eric Bailey2024-06-111-11/+7
| | | | | | | | | | | | | | | * Open menu on click * Remove useless util * Improve label * s/press/click * Tweak message --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [🐴] Post embeds polish (#4339)Eric Bailey2024-06-042-30/+73
| | | | | | | * Handle message cleanup * Handle last message in chat list * Memoize lastMessage
* Revert "[🐴] Embed backwards compat (#4302)" (#4338)Eric Bailey2024-06-031-1/+44
| | | This reverts commit f868821cfcc87b62a320e5a1e11375fdb973adc1.
* [🐴] 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