* Add connection banner
* Switch icon depending on whether it is connected or not
* Clean timeout and change text
* Handle optimistic approach
* Piggyback server item fix
* Use toMilliseconds util function
* Set the websocket as disconnected when we are manually closing it
* Do not hide banner when app state changes
Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
* Init
* Test fix
* New sync implementation
* misc
* Includes migration and other servers sync
* Misc
* Migration fix
* Migration is done version 7
* Update app/queries/servers/thread.ts
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Update app/database/operator/server_data_operator/handlers/team_threads_sync.ts
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Feedback changes
* Fixes when old thread gets a reply
* Fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Add announcement banner
* Move config to its own table
* Add new config behaviour to iOS share extensions
* Fix test
* Add style changes
* Minor style fixes
* Address design feedback
* Address feedback
* Only render the announcement banner if container if licensed
Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
* Fix crash on Android when session expired notification is presented
* react-native-notification patch for schedule fix on android and open local notification on iOS
* Fix android scheduled session notification crash
* patch react-native-navigation to support blur/focus AppState on Android
* remove schedule session expired notification from login entry point
* schedule session expired notification actions
* add session manager
* Handle open session expired notification
* First approach
* Lint
* Fixes and adding monitoring console statements (to be removed later)
* Add pagination and apply graphQL also to login
* Get all entry points to use the same GQL call
* Unify gql handling
* Use graphQL on websocket reconnect
* Handle latest changes regarding categories
* Use graphQL to properly fetch channel members on other servers
* Remove logs and fetch unreads from other teams
* Minor fixes
* Final fixes
* Address feedback, minor refactoring, and fixes around the refactor
* Fix custom status duration types
* Add missing fields and some reordering
* Add timeout to fetch posts for unread channels
* initial check in
* add search value to memoized dependencies in modifier component
* ignore the back press
* UI adjustments from PR feedback
* initial commit
* recent search are getting rendered from WDB
* search terms from the search bar are getting added
* can delete recent searches from WDB from recent searches Options
* will now add new ters to the table and recreate existing terms with new
timestamp
* push for scrollview
* use flatlist instead of scrolview
* s/deleteRecentTeamSearchById/removeSearchFromTeamSearchHistory/
* s/addRecentTeamSearch/addSearchToTeamSearchHistory/
* Fix search to use a flatlist and remove douplicate reference
* fix eslint
* Fix android autoscroll search field to the top
* limit the number of saved searches to 20 for a team.
return the results a team Search History sorted by createdAt
* set display to term for now
* clean up
* clean up
* extract as constant
* move styles to the top
* always update the created_at value in the database.
* remove unused function
* - remove useMemo of recent
- set or remove props on AnimatedFlatlist
* styling adjustments
* styling changes
* divider takes up 1ox so only need 15px margin to get the 16px total to
the neighboring veritcal views
* update compassIcon to match figma design
* update divider opacity to match figma design
* update styling from UX PR requests
* increase close button to touchable area of 40x40 and adjust menuitem
container
* use logError instead of console.log and trowing an error
* remove surrounding parenthesis
* There is only one record, so no need to batch. Just call
destroyPermanently.
* call destroyPermanently directly
* when not useing the onScroll callback you don't need to set the
scrollEventThrottle
* set the max searches saved to 15
* no need to memoize
* shoud be a function call
* batch the add/update with the delete of the oldest model
* Minor improvements
* Fix bug when hitting back on search screen
* Fix long channel names in search results
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* WIP
* Actions updated to fetch remote first, and local on error
* Groups fetch and save
* PR Feedback: prepare vs store and undefined fix
* Forgot to add file
* Groups Mention WIP
* Groups highlight!
* Merge, PR Feedback
* PR Feedback
* PR Feedback: Try/Catch blocks
* PR Feedback
* Rebased with PR feedback
* Exclusion fix, plus id order
* Tidies up iterations
* Loops updated
* Update app/database/operator/server_data_operator/handlers/group.ts
Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
* PR Feedback: Remove unnecessary prepare/store methods
* Newline ESLint error
* Extracts out id generation for group-associations
* Batches if not fetchOnly
Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
* MM-37110: handle toggling of CRT feature
When a user toggles CRT on/off the app should truncate affected tables,
and re-fetch data.
Truncated tables:
- POST
- POSTS_IN_CHANNEL
- POSTS_IN_THREAD
- THREAD
- THREADS_IN_TEAM
- THREAD_PARTICIPANT
- MY_CHANNEL
After truncation `entry` is called again. We must make sure though that
we save the CRT change before calling `entry` again, or we end up with
infinite recursion.
PS the UI seems to handle the change rather good
* Fixes appEntry and popToRoot
* Small refactor
* Fixes since param on appEntry
* Further refactoring
* Delete unneeded return type
* Removes shouldPopToRoot from appEntry
* Addresses review comments
* Add column last_fetched_at to MyChannel & Thread tables and the migration
* Fix schema tests
* Handle lastFetchAt, retrieve threads on init and properly observe thread unreads (#6436)
* [Gekidou] Set lastFetchAt when fetching posts for a channel (#6437)
* Set lastFetchAt when fetching posts for a channel
* When resetting _preparedState set always to null
* Revert changes in WS
* Handle and set lastFetchedAt for MyChannel in iOS push notification
* feedback review
* iOS fallback to last post createAt if no lastFetchAt set
* Handle lastFetchAt on Android push notifications
* create storePostsForChannel local action
* Fix iOS fallback to last post create_at
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* WIP
* Actions updated to fetch remote first, and local on error
* Groups fetch and save
* PR Feedback: prepare vs store and undefined fix
* Forgot to add file
* Groups Mention WIP
* Groups highlight!
* Merge, PR Feedback
* PR Feedback
* PR Feedback: Try/Catch blocks
* PR Feedback
* Fix permalink to not joined channels and to not fetched posts.
* i18n-extract
* Implement as designed
* Revert unintended change
* Minor fix and fix svgs
* updated svg to fix masking problems and colors
* Fix lint
* Address feedback
* Update join_public_channel.tsx
fixed public channel svg
* Update join_public_channel.tsx
* Update join_private_channel.tsx
* Address feedback
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
* Improve handlers to only create/update needed recors and add loading indicator while posts are being loaded
* Tweak team handlers
* check for delete_at as falsey
* more handler tweaks
* Preference handler
* Small refactor on category body
* Add WS reconnect FETCHING_POSTS event
* Fix handleChannelViewedEvent when channel screen is not visible
* Replace blinking dot with spinner
* update snapshots to reflect the new spinner
* WIP
* Actions updated to fetch remote first, and local on error
* Groups fetch and save
* PR Feedback: prepare vs store and undefined fix
* Forgot to add file
* User profile
* Access User Profile from reaction list
* Fix threads participants list & open user profile on tap
* Extra bottom padding
* Profile long press tutorial
* Adjust heights
* Reduce label margin from 12 to 8
* Pinned messages
* Move isCRTEnabled query to be called earlier and only once
* Update Channel stats when post is (un)pinned
* Create svg module type definition
* Add missing localization strings
* feedback review