2019-12-11 23:01:12 +00:00
|
|
|
/* eslint-disable no-bitwise */
|
2022-02-28 18:00:47 +00:00
|
|
|
import { NativeSyntheticEvent } from 'react-native';
|
|
|
|
import KeyCommands, { constants, KeyCommand } from 'react-native-keycommands';
|
2019-12-11 23:01:12 +00:00
|
|
|
|
|
|
|
import I18n from './i18n';
|
|
|
|
|
|
|
|
const KEY_TYPING = '\t';
|
|
|
|
const KEY_PREFERENCES = 'p';
|
|
|
|
const KEY_SEARCH = 'f';
|
|
|
|
const KEY_PREVIOUS_ROOM = '[';
|
|
|
|
const KEY_NEXT_ROOM = ']';
|
|
|
|
const KEY_NEW_ROOM = __DEV__ ? 'e' : 'n';
|
|
|
|
const KEY_ROOM_ACTIONS = __DEV__ ? 'b' : 'i';
|
|
|
|
const KEY_UPLOAD = 'u';
|
|
|
|
const KEY_REPLY = ';';
|
|
|
|
const KEY_SERVER_SELECTION = __DEV__ ? 'o' : '`';
|
|
|
|
const KEY_ADD_SERVER = __DEV__ ? 'l' : 'n';
|
|
|
|
const KEY_SEND_MESSAGE = '\r';
|
|
|
|
const KEY_SELECT = '123456789';
|
|
|
|
|
2020-07-06 19:01:35 +00:00
|
|
|
const keyCommands = [
|
2019-12-11 23:01:12 +00:00
|
|
|
{
|
|
|
|
// Focus messageBox
|
|
|
|
input: KEY_TYPING,
|
|
|
|
modifierFlags: 0,
|
|
|
|
discoverabilityTitle: I18n.t('Type_message')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Send message on textInput to current room
|
|
|
|
input: KEY_SEND_MESSAGE,
|
|
|
|
modifierFlags: 0,
|
|
|
|
discoverabilityTitle: I18n.t('Send')
|
2020-07-06 19:01:35 +00:00
|
|
|
},
|
2019-12-11 23:01:12 +00:00
|
|
|
{
|
|
|
|
// Open Preferences Modal
|
|
|
|
input: KEY_PREFERENCES,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Preferences')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Focus Room Search
|
|
|
|
input: KEY_SEARCH,
|
|
|
|
modifierFlags: constants.keyModifierCommand | constants.keyModifierAlternate,
|
|
|
|
discoverabilityTitle: I18n.t('Room_search')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Select a room by order using 1-9
|
|
|
|
input: '1...9',
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Room_selection')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Change room to next on Rooms List
|
|
|
|
input: KEY_NEXT_ROOM,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Next_room')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Change room to previous on Rooms List
|
|
|
|
input: KEY_PREVIOUS_ROOM,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Previous_room')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Open New Room Modal
|
|
|
|
input: KEY_NEW_ROOM,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('New_room')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Open Room Actions
|
|
|
|
input: KEY_ROOM_ACTIONS,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Room_actions')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Upload a file to room
|
|
|
|
input: KEY_UPLOAD,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Upload_room')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Search Messages on current room
|
|
|
|
input: KEY_SEARCH,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Search_messages')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Scroll messages on current room
|
|
|
|
input: '↑ ↓',
|
|
|
|
modifierFlags: constants.keyModifierAlternate,
|
|
|
|
discoverabilityTitle: I18n.t('Scroll_messages')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Scroll up messages on current room
|
|
|
|
input: constants.keyInputUpArrow,
|
|
|
|
modifierFlags: constants.keyModifierAlternate
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Scroll down messages on current room
|
|
|
|
input: constants.keyInputDownArrow,
|
|
|
|
modifierFlags: constants.keyModifierAlternate
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Reply latest message with Quote
|
|
|
|
input: KEY_REPLY,
|
|
|
|
modifierFlags: constants.keyModifierCommand,
|
|
|
|
discoverabilityTitle: I18n.t('Reply_latest')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Open server dropdown
|
|
|
|
input: KEY_SERVER_SELECTION,
|
|
|
|
modifierFlags: constants.keyModifierCommand | constants.keyModifierAlternate,
|
|
|
|
discoverabilityTitle: I18n.t('Server_selection')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Select a server by order using 1-9
|
|
|
|
input: '1...9',
|
|
|
|
modifierFlags: constants.keyModifierCommand | constants.keyModifierAlternate,
|
|
|
|
discoverabilityTitle: I18n.t('Server_selection_numbers')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Navigate to add new server
|
|
|
|
input: KEY_ADD_SERVER,
|
|
|
|
modifierFlags: constants.keyModifierCommand | constants.keyModifierAlternate,
|
|
|
|
discoverabilityTitle: I18n.t('Add_server')
|
|
|
|
},
|
|
|
|
// Refers to select rooms on list
|
Merge 4.20.0 into master (#3412)
* [FIX] App not prompting join code for password protected channels (#2514)
* Adding joinCode parameter
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Insert join code input
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add joinCode field on db
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add label i18 pt-br and en-us
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add insert join code text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Fix atribute name
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add join text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Fix attributes joinCode, joinCodeRequired and pass attribute param in navigation
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Fixing attribute joinCodeRequired pass to goRoom
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Changed textinput style
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Delete not necessary attribute
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Fixing input style
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Undo unncessary changes
* use a join code modal
* tests: e2e tests to join protected channel
* fix: undo unnecessary change
* tests: cancel join code
* Remove some tests
* Minor fixes
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18n] Add Arabic (#2537)
* Arabic language setup
* Added arabic translation
* Arabic translation Proofreading
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing zh_TW and zh_CN strings (#2680)
* feat(i18n): add some missing strings and improve some translation
* fix: add missing server version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Add username on status messages (#2553)
* 1689 - missing user name for status messages
* 1689 - missing user name for status messages. Fixed broken e2e test "should pin message".
* Minor tweak
* Remove center style
* Small refactor on User
* Remove toLowerCase
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Filenames are incorrect in non-latin alphabets on upload (#2671)
* fix: filename on react-native-image-crop-picker
* fix: use rn-fetch-blob to upload files
* fix: FileUpload as a service
* fix: cancel upload on iOS
* fix: file upload from share extension
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Ease white labelling for Android (#2685)
* improve white labelling for Android
* Move application ID to gradle properties
* Fix CI
* Point foss sufix to main app
* Use npx on android-whitelabel script
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Chats order (#2688)
* Persist highest value on subscription.roomUpdatedAt
* Update tests
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [REGRESSION] Re-enable Jitsi Chat (#2687)
* Fix main jitsi
* Fix iOS
* Clear build.gradle cache
* Don't restore gradle
* cache is back
* Use master
* Point to react-native-jitsi-meet#master
* [CHORE] Build official apps on CI (#2701)
* Duplicated target and changed Bridging Header
* Display name
* Unnecessary dumb swift file removed
* Buildable name
* Reorder Info.plist
* Rename Official target's bundle id
* Ignore .mobileprovision
* Fix provisioning of official app
* Starting signing
* stash fastfile
* starting official ci iOS
* Uncomment Fastfile keychain
* Fix CI config
* allowProvisioningUpdates
* Changing AppIcon and Splash Screen
* Remove unnecessary folder inside of Images.xcassets
* Reorder notificationservice and shareextension plists
* Fix signing
* Manual signing style for official
* Split official signing
* Update project provisioning
* Use ENV as profile
* Output match
* Keys
* TestFlight refactor
* Setting up android
* android-official-play-build job
* Start removing unnecessary fastlane tasks on Android
* Trying to refactor Android jobs
* android-env
* Remove foss build for now
* Fork
* Fix if conditions
* Fix push
* ios-build command
* Rename Android builds
* Upload dSYMs
* Refactoring workflow
* Reorder upload-to-testflight
* upload-to-google-play-beta command
* Fix ci
* Fix android fork build
* Fix keystore
* Fix options on fastlane android
* Fix keystore
* Check isOfficial on iOS
* Check isOfficial on db
* Remove unused imports
* Database names on Android
* Tag fix
* Minor fixes
* Set IS_OFFICIAL on CI
* Fix detox
* follow review suggestions
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [i18n] Update fr (#2697)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [i18n] Update fr (#2705)
Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Empty space on Messagebox (#2704)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Yarn android scripts (#2716)
* [CHORE] Rename Experimental iOS lane (#2717)
* Move build_fork to the end
* Rename release to build_experimental
* [IMPROVEMENT] Use class variable instead of state for List's animated (#2718)
* [FIX] Bottom sheet being hidden sometimes (#2722)
* [IMPROVEMENT] Match background and text mention colors (#2723)
* [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726)
* Remove sequential empty spaces from Markdown preview
* Use Markdown preview on RepliedThread
* [FIX] Official app without sharedUserId (#2734)
* [CHORE] Update React Native to 0.63.4 (#2737)
* Bump version to 4.13.1 (#2739)
* [REGRESSION] Multiple uploads not working on iOS (#2738)
* Update React Native to 0.63.4
* Fix multiple uploads not working on iOS
* [FIX] Unable to save attachment on iOS (#2743)
* Fix rn-fetch-blob's document dir without forward slash
* Update camera roll
* [FIX] Generate Jitsi access token when making a call (#2694)
fixes: #2693
# Please enter the commit message for your changes. Lines starting
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Channels list not following the same sorting logic from web client (#2763)
* [FIX] Pods lost on Official target (#2764)
* [FIX] RoomItem using deprecated animated event signature (#2771)
* [FIX] Server autocomplete text breaking line (#2774)
* [FIX] ServerDropdown flashing bigger server icon (#2775)
* [FIX] ServerDropdown flashing bigger server icon
* Remove unused logo and update image path where needed
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rooms list not being updated on some cases (#2765)
* Request subscriptions on RoomsListView.constructor
* Removes opened rooms from last message persisting
* Change server reducer
* Prevent undefined ids causing query error
* [FIX] Share Extension hitting memory limit on iOS (#2788)
* [FIX] Disallow swipe to dismiss on share extension
* Limit query to 20 and clean up props
* Remove rn-extension-share branch pointer
* Test new branch
* Remove branch
* [IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details
* fix: re-render Thread Messages Item
* fix: update snapshots
* improve: thread details component
* fix: cast replies length
* improvement: format date of threads
* improvement: thread details styles
* fix: wrap text
* tests: update snapshot
* improvement: use same date format for all dates
* Icon size 24
* Remove date
* Remove prop drill
* Badge position
* Badge container tweak
* Fix inline style
* Move ThreadDetails to containers
* Update stories
* Fix lint
* Remove wrong prop
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove some migrations (#2792)
* Remove force rooms refresh
* Remove MMKV migration
* Bump version to 4.14.0 (#2797)
* [FIX] Messagebox tracking lost on pop gesture navigation (#2799)
* Use setTimeout instead of InteractionManager
* Update tracking lib
* [FIX] Back button closing activity when on root stack screen (#2804)
* Make hardware back button to behave as home button on root screens
* Remove unnecessary code
* Remove handleBackPress from OnboardingView
* Fix lint
* [i18n] Add missing German strings (#2715)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Encrypted Discussions (#2813)
* I18n key fix
* Add encrypted switch
* Remove unused i18n keys
* Add enabled to encryption reducer
* Show encrypted option on CreateDiscussionView only when e2e encryption is properly set
* Add localSearch and use it on search
* Use encrypted from parent channel
* Fix method calls as rest api with 2fa enabled
* Fix logout after reset keys
* Use encryption reducer instead of lib directly to check render
* Check for room type logic to display encryption option on create discussion
* Check toggle-room-e2e-encryption permission on RoomActionsView
* Check for encryption status instead of setting on server
* Fix
* Disable switch instead of hide it
* Fix spotlight for DMs
* Fix server test
* [FIX] Messagebox missing style for text color (#2786)
* Changing auxilaryTintColor
* Changed Placeholder color to BodyText color
* added color prop
* eslint changes
* used array for styles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Update arabic (#2696)
* Update ar.js
* Update ar.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Workspace input without i18n (#2689)
* [FIX] Translation of strings in Login page
* Strings are added for translation.
fixes: #2620
* Add pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Spotlight returning duplicated entries (#2805)
* Update rocketchat.js
* Updated search function
* Minor improvements
* Remove atIndex
* Add remove logic to remove duplicate data from response
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor ServerItem (#2778)
* Updated ServerDropdown and ServerItem
* Added ServerItem stories
* Update ServerDropdown.js
* Updated ServerItem stories
* Updated ServerItem stories and ServerItem component
* Updated SelectServerView, ServerItem and ServerItem stories
* Updated ServerItem stories
* Updated ServerItem stories
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [DOCS] Updated Quick Start docs link in e2e/readme (#2802)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add Turkish (#2793)
* Turkish language support added
* Update tr.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Lint on #2793 (#2818)
* [I18N] Add missing german strings (#2689) (#2820)
* [I18N] Add missing italian strings (#2817)
* [FIX] Server version becoming null on server change (#2821)
* [FIX] Wrong styling on E2E encryption banner (#2767)
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner (#2767)
* Updated SortDropdown, ListHeader, ListItem and added stories for List.Item
* Updated SortDropdown
* Removed unused component
* Updated List.Item and stories
* Reverted unnecessary changes and updated ListItem stories
* Fix minor indentation
* Stop breaking Touch's default underlay color
* Fix indentation
* Remove falsy comparison from render
* Fix left icon
* Use List.Item on OmnichannelStatus
* Add missing separator
* Lint
* Fix sort dropdown
* Remove unnecessary styles
* Fix detox
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App Store using Experimental's app id (#2826)
* [FIX] Wrong username on push notifications (#2825)
* [FIX] Share extension memory issues on iOS (#2845)
* Remove unnecessary class prop
* Stop rendering servers when there's only one
* Map and alloc only necessary columns from query
* Fetch servers count instead of all servers records
* Fetch only needed servers
* Separators
* Remove renderContent
* Minor fix
* Refactor query
* Smaller avatars in memory
* Fix getItemLayout
* Add topic
* Load less pods
* tests
* Import only used functions from lodash
* Fix pods
* Import only used functions from semver
* Fix media sharing
* Update pods
* Disables preview and thumb on iOS
* Update expo-video-thumbnail
* Unnecessary change
* [FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.14.1 (#2859)
* [IMPROVEMENT] Check for focused rooms on in-app notifications (#2857)
* Update InAppNotification and room reducer
* Update InAppNotification
This reverts commit 60330a1e04cfe8d2e5aa311f367083d831682c49.
* Stop subscribing to threads
* Remove ref
* Fix prop-types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Real name being ignored in SearchMessagesView (#2838)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove unnecessary share reducer calls (#2861)
* Remove unnecesary share reducer calls
* Update Avatar
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Breadcrumbs exceeding characters limit (#2862)
* [FIX] breadcrumbs exceeding
* fix.breadcrumbs-exceeding-change-events
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App compressing videos on iOS (#2915)
* Update index.js
* Update index.js
* [FIX] Real name setting ignored on reply preview (#2908)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reply component sending unused prop to Description (#2900)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme
* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar
* Updated MultiSelect
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Webview not falling back to default auth challenge when no cert is provided (#2918)
* [FIX] Android - fallback to default auth challenge handling when no cert is provided
* If a certificate auth challenge is requested on Android the webview will hang if no certificate is loaded.
To prevent this, fallback to default Android behavior and cancel the challenge with request.cancel()
* No client certificate case defaults to super implementation
* Update react-native-webview
* Downgrade to previous dependency version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
* [FIX] Support Jitsi_URL_Room_Hash (#2905)
* [FIX] Temp attachment files not being flushed after saved to gallery (#2871)
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Update iOS profiles for Experimental app (#2933)
* [IMPROVE] Deleted thread reply redirects to thread (#2840)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Thread showing typing indicator from main room (#2869)
* [FIX] Remove typing indicator from thread's header
* remove unnecessary props and change usersTyping condition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room
* Undo changes
* Check if current typing is from focused room before dispatching to redux
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't copy or edit media's description (#2885)
* [FIX] Image descriptions issues
* shorten the condition string
* fix selectedMessage state
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] RightButtonsContainer re-render check not returning default value (#2899)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks
* Minor fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not sending second argument for EventEmitter.removeListener on some places (#2909)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] System message of e2e encryption is missing (#2888)
* [FIX] System message of e2e encryption missing
* add new encryption string
* add to stories
* Add pt-BR
* Move stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add permissions to Redux (#2914)
* [FIX] Add permissions to Redux store
* add only permissions being used in the app
* add clear permissions reducer
* call RocketChat.hasPermission from reducer
* add server version comparison on getPermissions
* refactor hasPermission function
* refactor hasPermission function
* remove uncomment code
* use Q.experimentalSortBy()
* add coerce function
* Change Rocketchat.hasPermission
* Apply on isReadOnly
* Apply to RoomInfoEditView
* Apply to RoomInfoView and RoomInfoEditView
* canAutoTranslate
* Unnecessary clear permissions
* Revert getUpdatedSince
* Naming fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add hold step for ios and android build experimental (#2943)
* [CHORE] Add hold step for ios-build-experimental and android-build-experimental
* Android hold step
* add ios hold step
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual
* Update ReplyPreview.js
* Remove react-fast-compare
* Removed deep-equal and upgrade babel-eslint dev dependency
* Fix avatar
* Fix Messagebox
* Fix CreateDiscussionView
* ModalBlockView
* NewMessageView
* ProfileView
* RoomInfoEditView
* ServerDropdown
* Return local search as object instead of observable
* SelectedUsersView
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing Russian strings (#2946)
* [i18n] Add missing Russian strings
* Couple fixes
* Fix Direct_message
Translate Direct_message as already has been translated
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Use List.Separator in all places (#2931)
* [FIX] Use List.Separator in all places
* add List.Separator
* change List.Separator
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Limit new message list query size to 50 (#2947)
* Limit query to 50
* Remove observable
* [FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Minor refactor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactions modal's backdrop color too light (#2949)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.15.0 (#2950)
* [FIX] Share extension not working correctly on Official app (#2963)
* [FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary
* Use JS SDK branch
* Stop reconnecting if it's already connected
* Fix RoomsListView forever loading after tapping push notification of another server
* Execute fewer operations on app/index
* Remove roomsRequest call from onForeground
* Apply check and reopen
* Stop opening in-app notification when the app is on backgorund
* Connecting tweaks
* Fix deep linking not working if the app is on background
* Force reset yarn cache
* Upgrade JS SDK
* Remove listener on unmount
* Fix resume on Android after back button is pressed
* Fix local authentication resume
* Fix back button android
* Change JS SDK branch
* [FIX] Messagebox's placeholder color is too bright (#2968)
* [IMPROVEMENT] Message attachment colors (#2860)
* Added convertStrToHex function and updated Reply component
* Removed convertStrtToHex function and added attachmentBackground
* Added color2k, removed transparent view and applied transparentize to backgroundColor
* Added stories
* Update Reply stories
* Update Reply stories
* Fix lint
* Update Reply stories
* Fix props
* Move tests to Message stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace
* Added e2e tests
* Update login.js
* Update logout.js
* Reverted changes on login and share, updated init
* Update 08-persistantworkspace.spec.js
* Revert unnecessary changes
* Revert line change
* Update share.js
* Tweak tests
* Use wm shorthand
* Remove irrelevant calls to RocketChat.TOKEN_KEY
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to draft message (#2960)
* [E2E TEST] Draft message
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to group DM (#2961)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to directory (#2964)
* [E2E TEST] Directory
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed
* Added lte and gte functions and updated imports
* Updated functions names
* Update util functions
* Update util function and added methods
* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms
* Fix comparison
* Update getPermissions.js
* Remove unused import
* Fix lint
* Fix lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to discussions (#2970)
* [E2E TEST] Discussions
* fix error Cannot find UI elemen
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Attachment not rendering markdown (#2924)
* [FIX] Render markdown in Fields content
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add e2e tests for mark message as unread (#2953)
* [E2E TEST] Add e2e tests for mark message as unread
* fixed test for draft message
* change test name
* move test to other file
* Remove unnecessary tests
* Rename file
* Update jest tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to delete server (#2954)
* [E2E TEST] Delete server
* fixed test for delete server
* fix tests
* minor changes
* Rename file
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor RoomActionsView permissions (#2872)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js
* Updated loginTOTP
* Added validation
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Fix resolve
* Remove incognito
* Fix totp being requested on webview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] User status icons (#2991)
* Add status and teams
* Update icons, icon size and getUsersPresence
* Minor changes
* Refactor RoomTypeIcon
* Minor tweaks
* Update unit tests
* Minor fixes
* Fix styles
* Small refactor
* Update jest
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [REGRESSION] Auth via deep linking not working (#3015)
* Update rocketchat and add e2e test for deep linking
* Update rocketchat and add e2e test for deep linking
* Update deeplinking e2e
* fix deep linking auth
* Test deep linking auth
* Fix deeplink to rid and add tests
* Small refactor
* Add non existing server test
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Create discussion request being sent with null value on encryption param (#3033)
* [CHORE] Use JSON files for i18n (#3011)
* [IMPROVEMENT] Load only i18n files needed (#3014)
* Use json
* Load only i18n files needed
* [REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache
* Write e2e tests
* Fix lint
* Fix isRTL
* [FIX] Custom OAuth and iframe login attempts being called multiple times (#3020)
* [FIX] App crashing when attachment color is an invalid HEX (#3021)
* [IMPROVEMENT] Add "Message" option to Room Info (#3029)
* [CHORE] Go to room from hashtag
* Layout tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't change status (#3018)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Search input not using the whole header space (#3012)
* [FIX] Search input not using the whole space
* Fix on getHeaderTitlePosition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2EE password hiding automatically (#2972)
* [FIX] E2EE password hiding automatically
* add e2e test
* fixed hiding banner
* move e2e tests to 01-e2eencryption
* remove console.log
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Move threads tests to its own file (#2965)
* [E2E TEST] Move threads test to another file
* changed descirbe title
* Rearrange files
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Regex typo on markdown (#2928)
* [FIX] Fix Regex Typo
* Add story for testing
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Make attachment validation compatible with web client (#2927)
* [FIX] Make attachment validation compatible with web client
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Non-reply attachments displaying time (#2902)
* Remove time if no message_link
* Fix message stories for replies
* Final stories fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label
* Add to register and add missing strings
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036)
This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807.
* Bump version to 4.16.0 (#3037)
* [NEW] Basic support to Teams (#3016)
* Database migration
* RoomItem icon
* Team icons
* Teams group
* Small tweak on RoomTypeIcon
* RoomView Header
* Add team's channels to RoomView header
* Starting TeamChannelsView
* Icon size
* o data found
* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView
* Use teams.ListRooms endpoint, render rooms list, remove unused functions
* Show team main on TeamChannelsView
* Disable swipe
* Pagination working
* Fix blinking no data found
* Search working
* Refactor to use BackgroundContainer while loading
* Go to room
* Cleanup
* Go to actions
* Events
* Lint
* Add debounce to go room
* Fix for tablet
* i18n
* Small fix
* Minor refactor
* Use local data when it exists
* Show last message
* Force teams migration
* Add stories to BackgroundContainer
* Remove unused component
* Move RoomViewHeader into containers folder
* Refactoring
* Testing RoomHeader
* i18n
* Fix server endpoint version
* Fix events
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions
This PR focuses on improving command, emoji, channel and user mentions.
* [Tests] Added e2e tests for mention improvement
* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /
* Return data on search for empty text
* Minor fixes
* Update e2e tests
* Minor fix
* [FIX] allow command mentioning in between text
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Status text not being updated on sidebar (#3041)
* Update StatusView.js
* Minor tweak
* Minor tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unable to search non-latin alphabet names on members list (#3039)
* Add search by name in members list
* Update RoomMembersView search
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Search stops working after some time (#3044)
* Bump version to 4.17.0 (#3058)
* [CHORE] Add job to upload Experimental to Google Play production (#3050)
* [REGRESSION] SAML stopped working after #2978 (#3060)
* [REGRESSION] Room actions not loading on tablet (#3061)
* Bump version to 4.16.1 (#3063)
* [REGRESSION] Fallback language stopped working (#3072)
* [CHORE] Update Detox to 18.10.0 (#3052)
* Updated detox and 5 tests
* Update e2e cases for Detox v18, update setUserStatus and added SET_STATUS_FAIL
* Downgrade mocha
* Exclude arm64 from building and update tests cases
* Update more tests cases, add registeringUser4
* Update more test files and add room-actions-scrollview testID
* Update package.json
* Remove unused username from test file and update 08-roominfo test file
* Fixing
* Mark as unread
* Fixing flaky tests
* Minor fixes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Message author touchable taking whole space available (#3048)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [CHORE] Improve stories (#3028)
* [CHORE] Improve stories
* Refactor Avatar and UIKitModal
* fixed undefined 'name'
* Remove commented stories
* Remove Markdown from stories/index, update Markdown test file and remove markdown stories from Message stories
* Remove StoriesSeparator
* Refactor Markdown
* Remove commented lines of code
* Small refactor
* Re-add stories
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.17.0 (#3083)
* [REGRESSION] Fallback not working when device's language is available (#3091)
* Always add 'en' i18n
* Add tests
* Bump version to 4.16.2 (#3092)
* [FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3139)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
* [NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Tests not working because of ES6 import (#3147)
* Update ITeam.js
* Minor tweak
* [NEW] Leave Teams (#3116)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Jump to message (#3099)
* Scrolling
* Add loadMore button at the end of loadMessagesForRoom
* Delete dummy item on tap
* Only insert loadMore dummy if there's more data
* load surrounding messages
* fixes and load next
* First dummy and dummy-next
* Save load next messages
* Check if message exists before fetching surroundings
* Refactoring List
* Jumping to message :)
* Showing blocking loader while scrolling/fetching message
* Check if message exists on local db before inserting dummy
* Delete dummies automatically when the message sent to updateMessages again
* Minor cleanup
* Fix scroll
* Highlight message
* Jump to bottom
* Load more on scroll
* Adding stories to LoadMore
* Refactoring
* Add loading indicator to LoadMore
* Small refactor
* Add LoadMore to threads
* getMoreMessages
* chat.getThreadMessages -> getThreadMessages
* Start jumping to threads
* Add jumpToMessageId on RoomView
* Nav to correct channel
* Fix PK issue on thread_messages
* Disable jump to thread from another room
* Fix nav to thread params
* Add navToRoom
* Refactor styles
* Test notch
* Fix Android border
* Fix thread message on title
* Fix NavBottomFAB on threads
* Minor cleanup
* Workaround for readThreads being called too often
* Lint
* Update tests
* Jump from search
* Go to threads from search
* Remove getItemLayout and rely on viewable items
* Fix load older
* stash working
* Fix infinite loading
* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable
* Add generateLoadMoreId util
* Minor cleanup
* Jump to message from notification/deep linking
* Add getMessageInfo
* Nav to threads from other rooms
* getThreadName
* Unnecessary logic
* getRoomInfo
* Colocate getMessageInfo closer to RoomView
* Minor cleanup
* Remove search from RoomActionsView
* Minor fix for search on not joined public channels
* Jump to any link
* Fix tablets
* Jump to message from MessagesView and other bug fixes
* Fix issue on Urls
* Adds race condition to cancel jump to message if it's stuck or after 5 seconds
* Jump from message search quote
* lint
* Stop onPress
* Small refactor on load methods
* Minor fixes for loadThreadMessages
* Minor typo
* LoadMore i18n
* Minor cleanup
* [FIX] Method calls not sending date params as EJSON (#3159)
* [FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Remove member from team (#3117)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Added confirmationAlert for missing permissions case
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add Existing Channel screen showing discussions and channels without permission (#3151)
* [Fix] the filter to show the existing channel
* [Refactor] the function that filter to isolate it
* Refactor how to wsearch properly
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Member search not trimming search text (#3129)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
* Handling member search with spaces to the left and right of name/username
* Changing location of string trimmer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room
* E2E - Update previous roomView count after send msg in discussion
* Not needed rn
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Team creation not raising error if something unexpected happens (#3152)
* [IMPROVEMENT] Add error to AddExistingChannel
* Fix the alert error when create a channel
* Fix the error alert box when create channel and teams
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check permissions on team channels action sheet (#3155)
* [IMPROVEMENT] Show only the option that user can manage in TeamChannelsView
* Refactor the showActionSheet function
* Added remove team channel permission
* Cleanup
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add channels to team's flow using different navigators (#3157)
* [FIX] the navigation to AddChannelTeamView and next screens
* Fix the order inside the NewMessageStackNavigator
* Delete spaces after arrow function in onPress
* Adjusted InsideStackNavigator to a conditional animation
* Fixed route for iPad
* Small change
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Allow discussions to be edited (#3137)
* Refactored the filter to work the edit for channel and discussion
* Removed the filter which type of room can be edit
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Delete Teams (#3123)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Minor tweaks
* Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Android navigation bar color when Loading modal appears (#3165)
* [FIX] Modal appearance
* Undo and only add android:navigationBarColor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check for old servers for Teams (#3171)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Convert/Move Channel to Team (#3164)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView
* Fix icon
* Minor tweaks
* add tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add logEvents for Teams (#3182)
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Disable jitsi call for teams (#3183)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db
* Minor nitpick
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status
* Added error to pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Item not animating on tap on team's channels view (#3187)
* [FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3192)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Support Google OAuth from external browser (#3134)
* Deep linking to the app
* Handle deep linking
* Bump version to 4.17.0 (#3093)
* Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92efa45fef3938afbb92be52b97cb16358.
* [FIX] Teams tests (#3196)
* Make team_main not optional and fix tests
* Undo isOptional and fix query
* Comment
* [FIX] Wrong system messages being passed as parameters to room save (#3197)
* [FIX] RoomItem's long press crashing the app if prop is missing (#3199)
* Check onLongPress prop
* Add Touch stories
* [FIX] Crashing on link press (#3204)
* [FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] Fixed E2E tests (#3201)
* [FIX] Test E2E i18n
* 01-createroom and 02-room fixed
* 03-roomactions and 04-discussions
* 05-threads and 07-markasunread from room
* Test 07-markasunread
* Set notifications 'YES' and delete true in 03-forgotpassword and 04-createuser
* Fixed the data that 02-team uses and changed the message in 07-markasunread
* Added group.alternate to data.docker and commented the test for the fallback language
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions
* add redux action for update
* Minor tweaks
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [IMPROVE] Subscribe to settings (#3222)
* Add action and reducer
* Add streamNotifyAll listener
* Minor tweak
* Minor tweak
* Fix update not taking in consideration other type columnns
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Add Lint to E2E tests (#3217)
* Added eslint plugin dependencie and fixed the eslint.js
* E2E Tests folder Assorted
* Linted all e2e, just e2e/docker that don't changed
* Update 09-jumptomessage.spec.js
* Removed async from describe function
* Remove outdated detox linter lib
* Add overrides to eslintrc
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout
* Add loginEmailPassword to loginOAuthOrSso
* Add isFromWebView field
* Fix migrations
* Minor tweak
* Fix OAuth for other services
* Fix migrations
* Stop persisting loginEmailPassword
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3251)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Message body readability on dark themes (#2981)
* [CHORE] Apply auxiliaryText on message body
* change bodyText to uxiliaryText
* Update tests
* Update bodyText color and rollback PR changes
* Update Storyshots.test.js.snap
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Subscribe to settings making app to hang on login (#3254)
* [FIX] Poor performance in messages list on Android 11 (#3260)
* Bump version to 4.18.0 (#3252)
* [FIX] Create team crashing the app (#3248)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel
* Minor tweak
* [IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp
* Fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3269)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups
* Remove i18n
* Regression: Settings pagination not working (#3277)
* Regression: Markdown handlePress not working properly (#3278)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Improve QA workflow (#3285)
* Chore: Update dependencies (#3206)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Update android image to api 29 and xcode to 12.4
* building
* Fix lint
* Get rid of Storybooks errors
* Patch react-native-simple-crypto
* Remove pods from git
* Stash simple crypto
* Stash Flipper
* Remove single crypto patch
* Add manage-pods command
* Update Xcode to 12.5.0
* Fix E2E tests
* Cleanup podfile
* Fix Storybook
* Remove RN patch
* Fix iOS build release
* Fix cocoapods cache on CI
* Try to fix pods using bundle
* Update gems
* Add app_store_connect_api_key env to CI
* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64
* Rollback to older usage of app_store_connect_api_key
* tmp
* Run manage-pods on TestFlight
* Use Podfile instead of Podfile.lock for cache
* Increase no_output_timeout from 20 minutes to 40
* Restore node modules on upload-to-testflight
* Add pod install to docs
* Chore: Run lint and tests on staged files only (#3291)
* Bump version to 4.19.0 (#3307)
* Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native
* Really remove bugsnag from android
* Install @bugsnag/react-native
* Logging error on Android correctly
* Cleanup
* Fix bugsnag mock
* iOS builds
* Fix CI mistake
* Upload dSYMs to Bugsnag
* Upload source maps automatically on iOS
* Cleanup
* Enable Bugsnag on share extension
* Add test error
* Use large macos
* Bump to 4.19.0 temporarily to test on TestFlight official
* Use temp keys
* Fix upload source maps for Official iOS build
* Remove tests
* Set version back to 4.18.0
* Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error
* Title in alert
* Disable button when the user donesn't have the role permission
* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash
* Check if the error eis translated before parse through i18n
* Remove unnecessary code
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading
* Added animation to backdrop opacity
* Minor tweak
* Fix internal image impacted by opacity
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension
* Cleanup
* [FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat
* Added the permission to edit livechat room custom fields
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat
* [FIX] Custom fields labels and values
* refactor field
* Added the permission to edit livechat room custom fields
* Fix the inputs.focus()
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat
* [FIX] Tags with multiselect and tagParamsSelected
* Removed console.log and the new set to filter
* Added the permission to edit livechat room custom fields
* Change Title Livechat_edit to Edit
* Added marginBottom to multiSelect
* Added marginBottom to multiSelect
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both
* Removed console.log
* minor tweak
* Enable and disable crashlytics and remove breadcrumb from bugsnag
* minor tweaks with the names of the variables
* minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view
fixes: #2853
* Add stories for thumbnails and update test
* [Test] Update tests
* added stories
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list
fixes: #2684
* Changed the Button and theme, text theme and how to call the function
* Fix the props passed in Message
* Function to context
* Added button attachment to stories
* New snapshot
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages
* Minor tweak
* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined
* Added some team errors in i18n
* Added unauthorized to i18n
* Test if there is channel name too, to prevent to show {missing roomName}
* Refactor the treatment error to check if exists before translate with i18n
* Remove some check conditional points
* Minor tweak
* Added array with error inside the createChannel
* Moved error array to inside the handleFailure
* added creating_discussion
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java
* Update MainApplication.java
* Downgrade react-native-orientation-locker
* Pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] TextInput breaking line (#2873)
* Update TextInput's padding
* Chante textAlign to auto and to ellipses longer text than the width
* Added story with changes in text input
* Changed in TextInput stories
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps
* Update react-native-jitsi-meet
* Working on iOS from Jitsi source
* Dependencies installed
* Temp android
* Kinda working android
* Working on iOS with our SDK
* Use our maven repo
* Fix temp maven url
* Cleanup
* Fix maven url
* Bring chat back
* Add activity indicator
* Update react-native-jitsi-meet
* Fix loading on iOS
* Clear gradle cache
* Try 3.6.0
* Dummy change to update gradle cache
* Point to merged forks
* update pod commit
* Bump version to 4.20.0 (#3366)
* Chore: Start Typescript migration (#3279)
* [IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: lint-staged not working properly(#3382)
* Chore: Remove CocoaPods folder (#3381)
* Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript
* TODO -> TODO:
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
* [NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Preserve voice message if recording is interrupted (#3397)
* https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3388/commits/7c259096713a73e4e39467b45298222ca16a9d5e
* Minor changes
Co-authored-by: Marco Jakobs <mj@jacotec.de>
* [IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Point to new white label URL (#3402)
* [FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet
* removed refreshControl
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Abdullah Alhamoud <10301923+abalhamoud@users.noreply.github.com>
Co-authored-by: David-Tsui <st880221@gmail.com>
Co-authored-by: Dave Koo <dkoo761@gmail.com>
Co-authored-by: Graham Smith <graham@wiseman-designs.com>
Co-authored-by: Fazil Boudjelal <fazildiablou@hotmail.fr>
Co-authored-by: Lucas Dousse <Cormoran96@users.noreply.github.com>
Co-authored-by: Sumukha Hegde <SUMUKHA214@GMAIL.COM>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: phriedrich <info@phriedrich.de>
Co-authored-by: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com>
Co-authored-by: Hakan YILMAZ <mukerrem.yilmaz@hotmail.com>
Co-authored-by: Vincenzo Esposito <aenon.esposito@gmail.com>
Co-authored-by: Arkadyuti Bandyopadhyay <bandyopadhyayarkadyuti@gmail.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gung Wah <41157464+kresnaputra@users.noreply.github.com>
Co-authored-by: Billy Newman <newmanw10@gmail.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
Co-authored-by: ankar84 <ankar84@gmail.com>
Co-authored-by: sadegh <sadeghmohamadnia@yahoo.com>
Co-authored-by: Noach Magedman <nmagedman@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
Co-authored-by: Diego Sampaio <chinello@gmail.com>
Co-authored-by: Chris Price <56982873+cprice-kgi@users.noreply.github.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2021-10-01 18:12:09 +00:00
|
|
|
...[1, 2, 3, 4, 5, 6, 7, 8, 9].map(value => ({
|
|
|
|
input: `${value}`,
|
2019-12-11 23:01:12 +00:00
|
|
|
modifierFlags: constants.keyModifierCommand
|
Merge 4.20.0 into master (#3412)
* [FIX] App not prompting join code for password protected channels (#2514)
* Adding joinCode parameter
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Insert join code input
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add joinCode field on db
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add label i18 pt-br and en-us
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add insert join code text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Fix atribute name
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add join text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Fix attributes joinCode, joinCodeRequired and pass attribute param in navigation
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Fixing attribute joinCodeRequired pass to goRoom
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Changed textinput style
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Delete not necessary attribute
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Fixing input style
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Undo unncessary changes
* use a join code modal
* tests: e2e tests to join protected channel
* fix: undo unnecessary change
* tests: cancel join code
* Remove some tests
* Minor fixes
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18n] Add Arabic (#2537)
* Arabic language setup
* Added arabic translation
* Arabic translation Proofreading
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing zh_TW and zh_CN strings (#2680)
* feat(i18n): add some missing strings and improve some translation
* fix: add missing server version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Add username on status messages (#2553)
* 1689 - missing user name for status messages
* 1689 - missing user name for status messages. Fixed broken e2e test "should pin message".
* Minor tweak
* Remove center style
* Small refactor on User
* Remove toLowerCase
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Filenames are incorrect in non-latin alphabets on upload (#2671)
* fix: filename on react-native-image-crop-picker
* fix: use rn-fetch-blob to upload files
* fix: FileUpload as a service
* fix: cancel upload on iOS
* fix: file upload from share extension
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Ease white labelling for Android (#2685)
* improve white labelling for Android
* Move application ID to gradle properties
* Fix CI
* Point foss sufix to main app
* Use npx on android-whitelabel script
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Chats order (#2688)
* Persist highest value on subscription.roomUpdatedAt
* Update tests
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [REGRESSION] Re-enable Jitsi Chat (#2687)
* Fix main jitsi
* Fix iOS
* Clear build.gradle cache
* Don't restore gradle
* cache is back
* Use master
* Point to react-native-jitsi-meet#master
* [CHORE] Build official apps on CI (#2701)
* Duplicated target and changed Bridging Header
* Display name
* Unnecessary dumb swift file removed
* Buildable name
* Reorder Info.plist
* Rename Official target's bundle id
* Ignore .mobileprovision
* Fix provisioning of official app
* Starting signing
* stash fastfile
* starting official ci iOS
* Uncomment Fastfile keychain
* Fix CI config
* allowProvisioningUpdates
* Changing AppIcon and Splash Screen
* Remove unnecessary folder inside of Images.xcassets
* Reorder notificationservice and shareextension plists
* Fix signing
* Manual signing style for official
* Split official signing
* Update project provisioning
* Use ENV as profile
* Output match
* Keys
* TestFlight refactor
* Setting up android
* android-official-play-build job
* Start removing unnecessary fastlane tasks on Android
* Trying to refactor Android jobs
* android-env
* Remove foss build for now
* Fork
* Fix if conditions
* Fix push
* ios-build command
* Rename Android builds
* Upload dSYMs
* Refactoring workflow
* Reorder upload-to-testflight
* upload-to-google-play-beta command
* Fix ci
* Fix android fork build
* Fix keystore
* Fix options on fastlane android
* Fix keystore
* Check isOfficial on iOS
* Check isOfficial on db
* Remove unused imports
* Database names on Android
* Tag fix
* Minor fixes
* Set IS_OFFICIAL on CI
* Fix detox
* follow review suggestions
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [i18n] Update fr (#2697)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [i18n] Update fr (#2705)
Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Empty space on Messagebox (#2704)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Yarn android scripts (#2716)
* [CHORE] Rename Experimental iOS lane (#2717)
* Move build_fork to the end
* Rename release to build_experimental
* [IMPROVEMENT] Use class variable instead of state for List's animated (#2718)
* [FIX] Bottom sheet being hidden sometimes (#2722)
* [IMPROVEMENT] Match background and text mention colors (#2723)
* [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726)
* Remove sequential empty spaces from Markdown preview
* Use Markdown preview on RepliedThread
* [FIX] Official app without sharedUserId (#2734)
* [CHORE] Update React Native to 0.63.4 (#2737)
* Bump version to 4.13.1 (#2739)
* [REGRESSION] Multiple uploads not working on iOS (#2738)
* Update React Native to 0.63.4
* Fix multiple uploads not working on iOS
* [FIX] Unable to save attachment on iOS (#2743)
* Fix rn-fetch-blob's document dir without forward slash
* Update camera roll
* [FIX] Generate Jitsi access token when making a call (#2694)
fixes: #2693
# Please enter the commit message for your changes. Lines starting
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Channels list not following the same sorting logic from web client (#2763)
* [FIX] Pods lost on Official target (#2764)
* [FIX] RoomItem using deprecated animated event signature (#2771)
* [FIX] Server autocomplete text breaking line (#2774)
* [FIX] ServerDropdown flashing bigger server icon (#2775)
* [FIX] ServerDropdown flashing bigger server icon
* Remove unused logo and update image path where needed
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rooms list not being updated on some cases (#2765)
* Request subscriptions on RoomsListView.constructor
* Removes opened rooms from last message persisting
* Change server reducer
* Prevent undefined ids causing query error
* [FIX] Share Extension hitting memory limit on iOS (#2788)
* [FIX] Disallow swipe to dismiss on share extension
* Limit query to 20 and clean up props
* Remove rn-extension-share branch pointer
* Test new branch
* Remove branch
* [IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details
* fix: re-render Thread Messages Item
* fix: update snapshots
* improve: thread details component
* fix: cast replies length
* improvement: format date of threads
* improvement: thread details styles
* fix: wrap text
* tests: update snapshot
* improvement: use same date format for all dates
* Icon size 24
* Remove date
* Remove prop drill
* Badge position
* Badge container tweak
* Fix inline style
* Move ThreadDetails to containers
* Update stories
* Fix lint
* Remove wrong prop
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove some migrations (#2792)
* Remove force rooms refresh
* Remove MMKV migration
* Bump version to 4.14.0 (#2797)
* [FIX] Messagebox tracking lost on pop gesture navigation (#2799)
* Use setTimeout instead of InteractionManager
* Update tracking lib
* [FIX] Back button closing activity when on root stack screen (#2804)
* Make hardware back button to behave as home button on root screens
* Remove unnecessary code
* Remove handleBackPress from OnboardingView
* Fix lint
* [i18n] Add missing German strings (#2715)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Encrypted Discussions (#2813)
* I18n key fix
* Add encrypted switch
* Remove unused i18n keys
* Add enabled to encryption reducer
* Show encrypted option on CreateDiscussionView only when e2e encryption is properly set
* Add localSearch and use it on search
* Use encrypted from parent channel
* Fix method calls as rest api with 2fa enabled
* Fix logout after reset keys
* Use encryption reducer instead of lib directly to check render
* Check for room type logic to display encryption option on create discussion
* Check toggle-room-e2e-encryption permission on RoomActionsView
* Check for encryption status instead of setting on server
* Fix
* Disable switch instead of hide it
* Fix spotlight for DMs
* Fix server test
* [FIX] Messagebox missing style for text color (#2786)
* Changing auxilaryTintColor
* Changed Placeholder color to BodyText color
* added color prop
* eslint changes
* used array for styles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Update arabic (#2696)
* Update ar.js
* Update ar.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Workspace input without i18n (#2689)
* [FIX] Translation of strings in Login page
* Strings are added for translation.
fixes: #2620
* Add pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Spotlight returning duplicated entries (#2805)
* Update rocketchat.js
* Updated search function
* Minor improvements
* Remove atIndex
* Add remove logic to remove duplicate data from response
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor ServerItem (#2778)
* Updated ServerDropdown and ServerItem
* Added ServerItem stories
* Update ServerDropdown.js
* Updated ServerItem stories
* Updated ServerItem stories and ServerItem component
* Updated SelectServerView, ServerItem and ServerItem stories
* Updated ServerItem stories
* Updated ServerItem stories
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [DOCS] Updated Quick Start docs link in e2e/readme (#2802)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add Turkish (#2793)
* Turkish language support added
* Update tr.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Lint on #2793 (#2818)
* [I18N] Add missing german strings (#2689) (#2820)
* [I18N] Add missing italian strings (#2817)
* [FIX] Server version becoming null on server change (#2821)
* [FIX] Wrong styling on E2E encryption banner (#2767)
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner (#2767)
* Updated SortDropdown, ListHeader, ListItem and added stories for List.Item
* Updated SortDropdown
* Removed unused component
* Updated List.Item and stories
* Reverted unnecessary changes and updated ListItem stories
* Fix minor indentation
* Stop breaking Touch's default underlay color
* Fix indentation
* Remove falsy comparison from render
* Fix left icon
* Use List.Item on OmnichannelStatus
* Add missing separator
* Lint
* Fix sort dropdown
* Remove unnecessary styles
* Fix detox
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App Store using Experimental's app id (#2826)
* [FIX] Wrong username on push notifications (#2825)
* [FIX] Share extension memory issues on iOS (#2845)
* Remove unnecessary class prop
* Stop rendering servers when there's only one
* Map and alloc only necessary columns from query
* Fetch servers count instead of all servers records
* Fetch only needed servers
* Separators
* Remove renderContent
* Minor fix
* Refactor query
* Smaller avatars in memory
* Fix getItemLayout
* Add topic
* Load less pods
* tests
* Import only used functions from lodash
* Fix pods
* Import only used functions from semver
* Fix media sharing
* Update pods
* Disables preview and thumb on iOS
* Update expo-video-thumbnail
* Unnecessary change
* [FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.14.1 (#2859)
* [IMPROVEMENT] Check for focused rooms on in-app notifications (#2857)
* Update InAppNotification and room reducer
* Update InAppNotification
This reverts commit 60330a1e04cfe8d2e5aa311f367083d831682c49.
* Stop subscribing to threads
* Remove ref
* Fix prop-types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Real name being ignored in SearchMessagesView (#2838)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove unnecessary share reducer calls (#2861)
* Remove unnecesary share reducer calls
* Update Avatar
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Breadcrumbs exceeding characters limit (#2862)
* [FIX] breadcrumbs exceeding
* fix.breadcrumbs-exceeding-change-events
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App compressing videos on iOS (#2915)
* Update index.js
* Update index.js
* [FIX] Real name setting ignored on reply preview (#2908)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reply component sending unused prop to Description (#2900)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme
* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar
* Updated MultiSelect
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Webview not falling back to default auth challenge when no cert is provided (#2918)
* [FIX] Android - fallback to default auth challenge handling when no cert is provided
* If a certificate auth challenge is requested on Android the webview will hang if no certificate is loaded.
To prevent this, fallback to default Android behavior and cancel the challenge with request.cancel()
* No client certificate case defaults to super implementation
* Update react-native-webview
* Downgrade to previous dependency version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
* [FIX] Support Jitsi_URL_Room_Hash (#2905)
* [FIX] Temp attachment files not being flushed after saved to gallery (#2871)
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Update iOS profiles for Experimental app (#2933)
* [IMPROVE] Deleted thread reply redirects to thread (#2840)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Thread showing typing indicator from main room (#2869)
* [FIX] Remove typing indicator from thread's header
* remove unnecessary props and change usersTyping condition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room
* Undo changes
* Check if current typing is from focused room before dispatching to redux
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't copy or edit media's description (#2885)
* [FIX] Image descriptions issues
* shorten the condition string
* fix selectedMessage state
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] RightButtonsContainer re-render check not returning default value (#2899)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks
* Minor fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not sending second argument for EventEmitter.removeListener on some places (#2909)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] System message of e2e encryption is missing (#2888)
* [FIX] System message of e2e encryption missing
* add new encryption string
* add to stories
* Add pt-BR
* Move stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add permissions to Redux (#2914)
* [FIX] Add permissions to Redux store
* add only permissions being used in the app
* add clear permissions reducer
* call RocketChat.hasPermission from reducer
* add server version comparison on getPermissions
* refactor hasPermission function
* refactor hasPermission function
* remove uncomment code
* use Q.experimentalSortBy()
* add coerce function
* Change Rocketchat.hasPermission
* Apply on isReadOnly
* Apply to RoomInfoEditView
* Apply to RoomInfoView and RoomInfoEditView
* canAutoTranslate
* Unnecessary clear permissions
* Revert getUpdatedSince
* Naming fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add hold step for ios and android build experimental (#2943)
* [CHORE] Add hold step for ios-build-experimental and android-build-experimental
* Android hold step
* add ios hold step
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual
* Update ReplyPreview.js
* Remove react-fast-compare
* Removed deep-equal and upgrade babel-eslint dev dependency
* Fix avatar
* Fix Messagebox
* Fix CreateDiscussionView
* ModalBlockView
* NewMessageView
* ProfileView
* RoomInfoEditView
* ServerDropdown
* Return local search as object instead of observable
* SelectedUsersView
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing Russian strings (#2946)
* [i18n] Add missing Russian strings
* Couple fixes
* Fix Direct_message
Translate Direct_message as already has been translated
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Use List.Separator in all places (#2931)
* [FIX] Use List.Separator in all places
* add List.Separator
* change List.Separator
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Limit new message list query size to 50 (#2947)
* Limit query to 50
* Remove observable
* [FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Minor refactor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactions modal's backdrop color too light (#2949)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.15.0 (#2950)
* [FIX] Share extension not working correctly on Official app (#2963)
* [FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary
* Use JS SDK branch
* Stop reconnecting if it's already connected
* Fix RoomsListView forever loading after tapping push notification of another server
* Execute fewer operations on app/index
* Remove roomsRequest call from onForeground
* Apply check and reopen
* Stop opening in-app notification when the app is on backgorund
* Connecting tweaks
* Fix deep linking not working if the app is on background
* Force reset yarn cache
* Upgrade JS SDK
* Remove listener on unmount
* Fix resume on Android after back button is pressed
* Fix local authentication resume
* Fix back button android
* Change JS SDK branch
* [FIX] Messagebox's placeholder color is too bright (#2968)
* [IMPROVEMENT] Message attachment colors (#2860)
* Added convertStrToHex function and updated Reply component
* Removed convertStrtToHex function and added attachmentBackground
* Added color2k, removed transparent view and applied transparentize to backgroundColor
* Added stories
* Update Reply stories
* Update Reply stories
* Fix lint
* Update Reply stories
* Fix props
* Move tests to Message stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace
* Added e2e tests
* Update login.js
* Update logout.js
* Reverted changes on login and share, updated init
* Update 08-persistantworkspace.spec.js
* Revert unnecessary changes
* Revert line change
* Update share.js
* Tweak tests
* Use wm shorthand
* Remove irrelevant calls to RocketChat.TOKEN_KEY
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to draft message (#2960)
* [E2E TEST] Draft message
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to group DM (#2961)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to directory (#2964)
* [E2E TEST] Directory
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed
* Added lte and gte functions and updated imports
* Updated functions names
* Update util functions
* Update util function and added methods
* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms
* Fix comparison
* Update getPermissions.js
* Remove unused import
* Fix lint
* Fix lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to discussions (#2970)
* [E2E TEST] Discussions
* fix error Cannot find UI elemen
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Attachment not rendering markdown (#2924)
* [FIX] Render markdown in Fields content
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add e2e tests for mark message as unread (#2953)
* [E2E TEST] Add e2e tests for mark message as unread
* fixed test for draft message
* change test name
* move test to other file
* Remove unnecessary tests
* Rename file
* Update jest tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to delete server (#2954)
* [E2E TEST] Delete server
* fixed test for delete server
* fix tests
* minor changes
* Rename file
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor RoomActionsView permissions (#2872)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js
* Updated loginTOTP
* Added validation
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Fix resolve
* Remove incognito
* Fix totp being requested on webview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] User status icons (#2991)
* Add status and teams
* Update icons, icon size and getUsersPresence
* Minor changes
* Refactor RoomTypeIcon
* Minor tweaks
* Update unit tests
* Minor fixes
* Fix styles
* Small refactor
* Update jest
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [REGRESSION] Auth via deep linking not working (#3015)
* Update rocketchat and add e2e test for deep linking
* Update rocketchat and add e2e test for deep linking
* Update deeplinking e2e
* fix deep linking auth
* Test deep linking auth
* Fix deeplink to rid and add tests
* Small refactor
* Add non existing server test
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Create discussion request being sent with null value on encryption param (#3033)
* [CHORE] Use JSON files for i18n (#3011)
* [IMPROVEMENT] Load only i18n files needed (#3014)
* Use json
* Load only i18n files needed
* [REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache
* Write e2e tests
* Fix lint
* Fix isRTL
* [FIX] Custom OAuth and iframe login attempts being called multiple times (#3020)
* [FIX] App crashing when attachment color is an invalid HEX (#3021)
* [IMPROVEMENT] Add "Message" option to Room Info (#3029)
* [CHORE] Go to room from hashtag
* Layout tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't change status (#3018)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Search input not using the whole header space (#3012)
* [FIX] Search input not using the whole space
* Fix on getHeaderTitlePosition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2EE password hiding automatically (#2972)
* [FIX] E2EE password hiding automatically
* add e2e test
* fixed hiding banner
* move e2e tests to 01-e2eencryption
* remove console.log
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Move threads tests to its own file (#2965)
* [E2E TEST] Move threads test to another file
* changed descirbe title
* Rearrange files
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Regex typo on markdown (#2928)
* [FIX] Fix Regex Typo
* Add story for testing
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Make attachment validation compatible with web client (#2927)
* [FIX] Make attachment validation compatible with web client
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Non-reply attachments displaying time (#2902)
* Remove time if no message_link
* Fix message stories for replies
* Final stories fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label
* Add to register and add missing strings
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036)
This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807.
* Bump version to 4.16.0 (#3037)
* [NEW] Basic support to Teams (#3016)
* Database migration
* RoomItem icon
* Team icons
* Teams group
* Small tweak on RoomTypeIcon
* RoomView Header
* Add team's channels to RoomView header
* Starting TeamChannelsView
* Icon size
* o data found
* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView
* Use teams.ListRooms endpoint, render rooms list, remove unused functions
* Show team main on TeamChannelsView
* Disable swipe
* Pagination working
* Fix blinking no data found
* Search working
* Refactor to use BackgroundContainer while loading
* Go to room
* Cleanup
* Go to actions
* Events
* Lint
* Add debounce to go room
* Fix for tablet
* i18n
* Small fix
* Minor refactor
* Use local data when it exists
* Show last message
* Force teams migration
* Add stories to BackgroundContainer
* Remove unused component
* Move RoomViewHeader into containers folder
* Refactoring
* Testing RoomHeader
* i18n
* Fix server endpoint version
* Fix events
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions
This PR focuses on improving command, emoji, channel and user mentions.
* [Tests] Added e2e tests for mention improvement
* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /
* Return data on search for empty text
* Minor fixes
* Update e2e tests
* Minor fix
* [FIX] allow command mentioning in between text
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Status text not being updated on sidebar (#3041)
* Update StatusView.js
* Minor tweak
* Minor tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unable to search non-latin alphabet names on members list (#3039)
* Add search by name in members list
* Update RoomMembersView search
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Search stops working after some time (#3044)
* Bump version to 4.17.0 (#3058)
* [CHORE] Add job to upload Experimental to Google Play production (#3050)
* [REGRESSION] SAML stopped working after #2978 (#3060)
* [REGRESSION] Room actions not loading on tablet (#3061)
* Bump version to 4.16.1 (#3063)
* [REGRESSION] Fallback language stopped working (#3072)
* [CHORE] Update Detox to 18.10.0 (#3052)
* Updated detox and 5 tests
* Update e2e cases for Detox v18, update setUserStatus and added SET_STATUS_FAIL
* Downgrade mocha
* Exclude arm64 from building and update tests cases
* Update more tests cases, add registeringUser4
* Update more test files and add room-actions-scrollview testID
* Update package.json
* Remove unused username from test file and update 08-roominfo test file
* Fixing
* Mark as unread
* Fixing flaky tests
* Minor fixes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Message author touchable taking whole space available (#3048)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [CHORE] Improve stories (#3028)
* [CHORE] Improve stories
* Refactor Avatar and UIKitModal
* fixed undefined 'name'
* Remove commented stories
* Remove Markdown from stories/index, update Markdown test file and remove markdown stories from Message stories
* Remove StoriesSeparator
* Refactor Markdown
* Remove commented lines of code
* Small refactor
* Re-add stories
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.17.0 (#3083)
* [REGRESSION] Fallback not working when device's language is available (#3091)
* Always add 'en' i18n
* Add tests
* Bump version to 4.16.2 (#3092)
* [FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3139)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
* [NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Tests not working because of ES6 import (#3147)
* Update ITeam.js
* Minor tweak
* [NEW] Leave Teams (#3116)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Jump to message (#3099)
* Scrolling
* Add loadMore button at the end of loadMessagesForRoom
* Delete dummy item on tap
* Only insert loadMore dummy if there's more data
* load surrounding messages
* fixes and load next
* First dummy and dummy-next
* Save load next messages
* Check if message exists before fetching surroundings
* Refactoring List
* Jumping to message :)
* Showing blocking loader while scrolling/fetching message
* Check if message exists on local db before inserting dummy
* Delete dummies automatically when the message sent to updateMessages again
* Minor cleanup
* Fix scroll
* Highlight message
* Jump to bottom
* Load more on scroll
* Adding stories to LoadMore
* Refactoring
* Add loading indicator to LoadMore
* Small refactor
* Add LoadMore to threads
* getMoreMessages
* chat.getThreadMessages -> getThreadMessages
* Start jumping to threads
* Add jumpToMessageId on RoomView
* Nav to correct channel
* Fix PK issue on thread_messages
* Disable jump to thread from another room
* Fix nav to thread params
* Add navToRoom
* Refactor styles
* Test notch
* Fix Android border
* Fix thread message on title
* Fix NavBottomFAB on threads
* Minor cleanup
* Workaround for readThreads being called too often
* Lint
* Update tests
* Jump from search
* Go to threads from search
* Remove getItemLayout and rely on viewable items
* Fix load older
* stash working
* Fix infinite loading
* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable
* Add generateLoadMoreId util
* Minor cleanup
* Jump to message from notification/deep linking
* Add getMessageInfo
* Nav to threads from other rooms
* getThreadName
* Unnecessary logic
* getRoomInfo
* Colocate getMessageInfo closer to RoomView
* Minor cleanup
* Remove search from RoomActionsView
* Minor fix for search on not joined public channels
* Jump to any link
* Fix tablets
* Jump to message from MessagesView and other bug fixes
* Fix issue on Urls
* Adds race condition to cancel jump to message if it's stuck or after 5 seconds
* Jump from message search quote
* lint
* Stop onPress
* Small refactor on load methods
* Minor fixes for loadThreadMessages
* Minor typo
* LoadMore i18n
* Minor cleanup
* [FIX] Method calls not sending date params as EJSON (#3159)
* [FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Remove member from team (#3117)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Added confirmationAlert for missing permissions case
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add Existing Channel screen showing discussions and channels without permission (#3151)
* [Fix] the filter to show the existing channel
* [Refactor] the function that filter to isolate it
* Refactor how to wsearch properly
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Member search not trimming search text (#3129)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
* Handling member search with spaces to the left and right of name/username
* Changing location of string trimmer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room
* E2E - Update previous roomView count after send msg in discussion
* Not needed rn
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Team creation not raising error if something unexpected happens (#3152)
* [IMPROVEMENT] Add error to AddExistingChannel
* Fix the alert error when create a channel
* Fix the error alert box when create channel and teams
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check permissions on team channels action sheet (#3155)
* [IMPROVEMENT] Show only the option that user can manage in TeamChannelsView
* Refactor the showActionSheet function
* Added remove team channel permission
* Cleanup
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add channels to team's flow using different navigators (#3157)
* [FIX] the navigation to AddChannelTeamView and next screens
* Fix the order inside the NewMessageStackNavigator
* Delete spaces after arrow function in onPress
* Adjusted InsideStackNavigator to a conditional animation
* Fixed route for iPad
* Small change
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Allow discussions to be edited (#3137)
* Refactored the filter to work the edit for channel and discussion
* Removed the filter which type of room can be edit
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Delete Teams (#3123)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Minor tweaks
* Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Android navigation bar color when Loading modal appears (#3165)
* [FIX] Modal appearance
* Undo and only add android:navigationBarColor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check for old servers for Teams (#3171)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Convert/Move Channel to Team (#3164)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView
* Fix icon
* Minor tweaks
* add tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add logEvents for Teams (#3182)
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Disable jitsi call for teams (#3183)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db
* Minor nitpick
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status
* Added error to pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Item not animating on tap on team's channels view (#3187)
* [FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3192)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Support Google OAuth from external browser (#3134)
* Deep linking to the app
* Handle deep linking
* Bump version to 4.17.0 (#3093)
* Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92efa45fef3938afbb92be52b97cb16358.
* [FIX] Teams tests (#3196)
* Make team_main not optional and fix tests
* Undo isOptional and fix query
* Comment
* [FIX] Wrong system messages being passed as parameters to room save (#3197)
* [FIX] RoomItem's long press crashing the app if prop is missing (#3199)
* Check onLongPress prop
* Add Touch stories
* [FIX] Crashing on link press (#3204)
* [FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] Fixed E2E tests (#3201)
* [FIX] Test E2E i18n
* 01-createroom and 02-room fixed
* 03-roomactions and 04-discussions
* 05-threads and 07-markasunread from room
* Test 07-markasunread
* Set notifications 'YES' and delete true in 03-forgotpassword and 04-createuser
* Fixed the data that 02-team uses and changed the message in 07-markasunread
* Added group.alternate to data.docker and commented the test for the fallback language
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions
* add redux action for update
* Minor tweaks
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [IMPROVE] Subscribe to settings (#3222)
* Add action and reducer
* Add streamNotifyAll listener
* Minor tweak
* Minor tweak
* Fix update not taking in consideration other type columnns
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Add Lint to E2E tests (#3217)
* Added eslint plugin dependencie and fixed the eslint.js
* E2E Tests folder Assorted
* Linted all e2e, just e2e/docker that don't changed
* Update 09-jumptomessage.spec.js
* Removed async from describe function
* Remove outdated detox linter lib
* Add overrides to eslintrc
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout
* Add loginEmailPassword to loginOAuthOrSso
* Add isFromWebView field
* Fix migrations
* Minor tweak
* Fix OAuth for other services
* Fix migrations
* Stop persisting loginEmailPassword
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3251)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Message body readability on dark themes (#2981)
* [CHORE] Apply auxiliaryText on message body
* change bodyText to uxiliaryText
* Update tests
* Update bodyText color and rollback PR changes
* Update Storyshots.test.js.snap
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Subscribe to settings making app to hang on login (#3254)
* [FIX] Poor performance in messages list on Android 11 (#3260)
* Bump version to 4.18.0 (#3252)
* [FIX] Create team crashing the app (#3248)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel
* Minor tweak
* [IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp
* Fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3269)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups
* Remove i18n
* Regression: Settings pagination not working (#3277)
* Regression: Markdown handlePress not working properly (#3278)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Improve QA workflow (#3285)
* Chore: Update dependencies (#3206)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Update android image to api 29 and xcode to 12.4
* building
* Fix lint
* Get rid of Storybooks errors
* Patch react-native-simple-crypto
* Remove pods from git
* Stash simple crypto
* Stash Flipper
* Remove single crypto patch
* Add manage-pods command
* Update Xcode to 12.5.0
* Fix E2E tests
* Cleanup podfile
* Fix Storybook
* Remove RN patch
* Fix iOS build release
* Fix cocoapods cache on CI
* Try to fix pods using bundle
* Update gems
* Add app_store_connect_api_key env to CI
* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64
* Rollback to older usage of app_store_connect_api_key
* tmp
* Run manage-pods on TestFlight
* Use Podfile instead of Podfile.lock for cache
* Increase no_output_timeout from 20 minutes to 40
* Restore node modules on upload-to-testflight
* Add pod install to docs
* Chore: Run lint and tests on staged files only (#3291)
* Bump version to 4.19.0 (#3307)
* Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native
* Really remove bugsnag from android
* Install @bugsnag/react-native
* Logging error on Android correctly
* Cleanup
* Fix bugsnag mock
* iOS builds
* Fix CI mistake
* Upload dSYMs to Bugsnag
* Upload source maps automatically on iOS
* Cleanup
* Enable Bugsnag on share extension
* Add test error
* Use large macos
* Bump to 4.19.0 temporarily to test on TestFlight official
* Use temp keys
* Fix upload source maps for Official iOS build
* Remove tests
* Set version back to 4.18.0
* Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error
* Title in alert
* Disable button when the user donesn't have the role permission
* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash
* Check if the error eis translated before parse through i18n
* Remove unnecessary code
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading
* Added animation to backdrop opacity
* Minor tweak
* Fix internal image impacted by opacity
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension
* Cleanup
* [FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat
* Added the permission to edit livechat room custom fields
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat
* [FIX] Custom fields labels and values
* refactor field
* Added the permission to edit livechat room custom fields
* Fix the inputs.focus()
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat
* [FIX] Tags with multiselect and tagParamsSelected
* Removed console.log and the new set to filter
* Added the permission to edit livechat room custom fields
* Change Title Livechat_edit to Edit
* Added marginBottom to multiSelect
* Added marginBottom to multiSelect
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both
* Removed console.log
* minor tweak
* Enable and disable crashlytics and remove breadcrumb from bugsnag
* minor tweaks with the names of the variables
* minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view
fixes: #2853
* Add stories for thumbnails and update test
* [Test] Update tests
* added stories
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list
fixes: #2684
* Changed the Button and theme, text theme and how to call the function
* Fix the props passed in Message
* Function to context
* Added button attachment to stories
* New snapshot
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages
* Minor tweak
* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined
* Added some team errors in i18n
* Added unauthorized to i18n
* Test if there is channel name too, to prevent to show {missing roomName}
* Refactor the treatment error to check if exists before translate with i18n
* Remove some check conditional points
* Minor tweak
* Added array with error inside the createChannel
* Moved error array to inside the handleFailure
* added creating_discussion
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java
* Update MainApplication.java
* Downgrade react-native-orientation-locker
* Pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] TextInput breaking line (#2873)
* Update TextInput's padding
* Chante textAlign to auto and to ellipses longer text than the width
* Added story with changes in text input
* Changed in TextInput stories
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps
* Update react-native-jitsi-meet
* Working on iOS from Jitsi source
* Dependencies installed
* Temp android
* Kinda working android
* Working on iOS with our SDK
* Use our maven repo
* Fix temp maven url
* Cleanup
* Fix maven url
* Bring chat back
* Add activity indicator
* Update react-native-jitsi-meet
* Fix loading on iOS
* Clear gradle cache
* Try 3.6.0
* Dummy change to update gradle cache
* Point to merged forks
* update pod commit
* Bump version to 4.20.0 (#3366)
* Chore: Start Typescript migration (#3279)
* [IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: lint-staged not working properly(#3382)
* Chore: Remove CocoaPods folder (#3381)
* Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript
* TODO -> TODO:
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
* [NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Preserve voice message if recording is interrupted (#3397)
* https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3388/commits/7c259096713a73e4e39467b45298222ca16a9d5e
* Minor changes
Co-authored-by: Marco Jakobs <mj@jacotec.de>
* [IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Point to new white label URL (#3402)
* [FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet
* removed refreshControl
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Abdullah Alhamoud <10301923+abalhamoud@users.noreply.github.com>
Co-authored-by: David-Tsui <st880221@gmail.com>
Co-authored-by: Dave Koo <dkoo761@gmail.com>
Co-authored-by: Graham Smith <graham@wiseman-designs.com>
Co-authored-by: Fazil Boudjelal <fazildiablou@hotmail.fr>
Co-authored-by: Lucas Dousse <Cormoran96@users.noreply.github.com>
Co-authored-by: Sumukha Hegde <SUMUKHA214@GMAIL.COM>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: phriedrich <info@phriedrich.de>
Co-authored-by: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com>
Co-authored-by: Hakan YILMAZ <mukerrem.yilmaz@hotmail.com>
Co-authored-by: Vincenzo Esposito <aenon.esposito@gmail.com>
Co-authored-by: Arkadyuti Bandyopadhyay <bandyopadhyayarkadyuti@gmail.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gung Wah <41157464+kresnaputra@users.noreply.github.com>
Co-authored-by: Billy Newman <newmanw10@gmail.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
Co-authored-by: ankar84 <ankar84@gmail.com>
Co-authored-by: sadegh <sadeghmohamadnia@yahoo.com>
Co-authored-by: Noach Magedman <nmagedman@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
Co-authored-by: Diego Sampaio <chinello@gmail.com>
Co-authored-by: Chris Price <56982873+cprice-kgi@users.noreply.github.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2021-10-01 18:12:09 +00:00
|
|
|
})),
|
2019-12-11 23:01:12 +00:00
|
|
|
// Refers to select servers on list
|
Merge 4.20.0 into master (#3412)
* [FIX] App not prompting join code for password protected channels (#2514)
* Adding joinCode parameter
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Insert join code input
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add joinCode field on db
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add label i18 pt-br and en-us
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add insert join code text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Fix atribute name
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add join text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Fix attributes joinCode, joinCodeRequired and pass attribute param in navigation
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Fixing attribute joinCodeRequired pass to goRoom
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Changed textinput style
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Delete not necessary attribute
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Fixing input style
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Undo unncessary changes
* use a join code modal
* tests: e2e tests to join protected channel
* fix: undo unnecessary change
* tests: cancel join code
* Remove some tests
* Minor fixes
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18n] Add Arabic (#2537)
* Arabic language setup
* Added arabic translation
* Arabic translation Proofreading
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing zh_TW and zh_CN strings (#2680)
* feat(i18n): add some missing strings and improve some translation
* fix: add missing server version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Add username on status messages (#2553)
* 1689 - missing user name for status messages
* 1689 - missing user name for status messages. Fixed broken e2e test "should pin message".
* Minor tweak
* Remove center style
* Small refactor on User
* Remove toLowerCase
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Filenames are incorrect in non-latin alphabets on upload (#2671)
* fix: filename on react-native-image-crop-picker
* fix: use rn-fetch-blob to upload files
* fix: FileUpload as a service
* fix: cancel upload on iOS
* fix: file upload from share extension
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Ease white labelling for Android (#2685)
* improve white labelling for Android
* Move application ID to gradle properties
* Fix CI
* Point foss sufix to main app
* Use npx on android-whitelabel script
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Chats order (#2688)
* Persist highest value on subscription.roomUpdatedAt
* Update tests
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [REGRESSION] Re-enable Jitsi Chat (#2687)
* Fix main jitsi
* Fix iOS
* Clear build.gradle cache
* Don't restore gradle
* cache is back
* Use master
* Point to react-native-jitsi-meet#master
* [CHORE] Build official apps on CI (#2701)
* Duplicated target and changed Bridging Header
* Display name
* Unnecessary dumb swift file removed
* Buildable name
* Reorder Info.plist
* Rename Official target's bundle id
* Ignore .mobileprovision
* Fix provisioning of official app
* Starting signing
* stash fastfile
* starting official ci iOS
* Uncomment Fastfile keychain
* Fix CI config
* allowProvisioningUpdates
* Changing AppIcon and Splash Screen
* Remove unnecessary folder inside of Images.xcassets
* Reorder notificationservice and shareextension plists
* Fix signing
* Manual signing style for official
* Split official signing
* Update project provisioning
* Use ENV as profile
* Output match
* Keys
* TestFlight refactor
* Setting up android
* android-official-play-build job
* Start removing unnecessary fastlane tasks on Android
* Trying to refactor Android jobs
* android-env
* Remove foss build for now
* Fork
* Fix if conditions
* Fix push
* ios-build command
* Rename Android builds
* Upload dSYMs
* Refactoring workflow
* Reorder upload-to-testflight
* upload-to-google-play-beta command
* Fix ci
* Fix android fork build
* Fix keystore
* Fix options on fastlane android
* Fix keystore
* Check isOfficial on iOS
* Check isOfficial on db
* Remove unused imports
* Database names on Android
* Tag fix
* Minor fixes
* Set IS_OFFICIAL on CI
* Fix detox
* follow review suggestions
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [i18n] Update fr (#2697)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [i18n] Update fr (#2705)
Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Empty space on Messagebox (#2704)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Yarn android scripts (#2716)
* [CHORE] Rename Experimental iOS lane (#2717)
* Move build_fork to the end
* Rename release to build_experimental
* [IMPROVEMENT] Use class variable instead of state for List's animated (#2718)
* [FIX] Bottom sheet being hidden sometimes (#2722)
* [IMPROVEMENT] Match background and text mention colors (#2723)
* [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726)
* Remove sequential empty spaces from Markdown preview
* Use Markdown preview on RepliedThread
* [FIX] Official app without sharedUserId (#2734)
* [CHORE] Update React Native to 0.63.4 (#2737)
* Bump version to 4.13.1 (#2739)
* [REGRESSION] Multiple uploads not working on iOS (#2738)
* Update React Native to 0.63.4
* Fix multiple uploads not working on iOS
* [FIX] Unable to save attachment on iOS (#2743)
* Fix rn-fetch-blob's document dir without forward slash
* Update camera roll
* [FIX] Generate Jitsi access token when making a call (#2694)
fixes: #2693
# Please enter the commit message for your changes. Lines starting
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Channels list not following the same sorting logic from web client (#2763)
* [FIX] Pods lost on Official target (#2764)
* [FIX] RoomItem using deprecated animated event signature (#2771)
* [FIX] Server autocomplete text breaking line (#2774)
* [FIX] ServerDropdown flashing bigger server icon (#2775)
* [FIX] ServerDropdown flashing bigger server icon
* Remove unused logo and update image path where needed
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rooms list not being updated on some cases (#2765)
* Request subscriptions on RoomsListView.constructor
* Removes opened rooms from last message persisting
* Change server reducer
* Prevent undefined ids causing query error
* [FIX] Share Extension hitting memory limit on iOS (#2788)
* [FIX] Disallow swipe to dismiss on share extension
* Limit query to 20 and clean up props
* Remove rn-extension-share branch pointer
* Test new branch
* Remove branch
* [IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details
* fix: re-render Thread Messages Item
* fix: update snapshots
* improve: thread details component
* fix: cast replies length
* improvement: format date of threads
* improvement: thread details styles
* fix: wrap text
* tests: update snapshot
* improvement: use same date format for all dates
* Icon size 24
* Remove date
* Remove prop drill
* Badge position
* Badge container tweak
* Fix inline style
* Move ThreadDetails to containers
* Update stories
* Fix lint
* Remove wrong prop
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove some migrations (#2792)
* Remove force rooms refresh
* Remove MMKV migration
* Bump version to 4.14.0 (#2797)
* [FIX] Messagebox tracking lost on pop gesture navigation (#2799)
* Use setTimeout instead of InteractionManager
* Update tracking lib
* [FIX] Back button closing activity when on root stack screen (#2804)
* Make hardware back button to behave as home button on root screens
* Remove unnecessary code
* Remove handleBackPress from OnboardingView
* Fix lint
* [i18n] Add missing German strings (#2715)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Encrypted Discussions (#2813)
* I18n key fix
* Add encrypted switch
* Remove unused i18n keys
* Add enabled to encryption reducer
* Show encrypted option on CreateDiscussionView only when e2e encryption is properly set
* Add localSearch and use it on search
* Use encrypted from parent channel
* Fix method calls as rest api with 2fa enabled
* Fix logout after reset keys
* Use encryption reducer instead of lib directly to check render
* Check for room type logic to display encryption option on create discussion
* Check toggle-room-e2e-encryption permission on RoomActionsView
* Check for encryption status instead of setting on server
* Fix
* Disable switch instead of hide it
* Fix spotlight for DMs
* Fix server test
* [FIX] Messagebox missing style for text color (#2786)
* Changing auxilaryTintColor
* Changed Placeholder color to BodyText color
* added color prop
* eslint changes
* used array for styles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Update arabic (#2696)
* Update ar.js
* Update ar.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Workspace input without i18n (#2689)
* [FIX] Translation of strings in Login page
* Strings are added for translation.
fixes: #2620
* Add pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Spotlight returning duplicated entries (#2805)
* Update rocketchat.js
* Updated search function
* Minor improvements
* Remove atIndex
* Add remove logic to remove duplicate data from response
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor ServerItem (#2778)
* Updated ServerDropdown and ServerItem
* Added ServerItem stories
* Update ServerDropdown.js
* Updated ServerItem stories
* Updated ServerItem stories and ServerItem component
* Updated SelectServerView, ServerItem and ServerItem stories
* Updated ServerItem stories
* Updated ServerItem stories
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [DOCS] Updated Quick Start docs link in e2e/readme (#2802)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add Turkish (#2793)
* Turkish language support added
* Update tr.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Lint on #2793 (#2818)
* [I18N] Add missing german strings (#2689) (#2820)
* [I18N] Add missing italian strings (#2817)
* [FIX] Server version becoming null on server change (#2821)
* [FIX] Wrong styling on E2E encryption banner (#2767)
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner (#2767)
* Updated SortDropdown, ListHeader, ListItem and added stories for List.Item
* Updated SortDropdown
* Removed unused component
* Updated List.Item and stories
* Reverted unnecessary changes and updated ListItem stories
* Fix minor indentation
* Stop breaking Touch's default underlay color
* Fix indentation
* Remove falsy comparison from render
* Fix left icon
* Use List.Item on OmnichannelStatus
* Add missing separator
* Lint
* Fix sort dropdown
* Remove unnecessary styles
* Fix detox
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App Store using Experimental's app id (#2826)
* [FIX] Wrong username on push notifications (#2825)
* [FIX] Share extension memory issues on iOS (#2845)
* Remove unnecessary class prop
* Stop rendering servers when there's only one
* Map and alloc only necessary columns from query
* Fetch servers count instead of all servers records
* Fetch only needed servers
* Separators
* Remove renderContent
* Minor fix
* Refactor query
* Smaller avatars in memory
* Fix getItemLayout
* Add topic
* Load less pods
* tests
* Import only used functions from lodash
* Fix pods
* Import only used functions from semver
* Fix media sharing
* Update pods
* Disables preview and thumb on iOS
* Update expo-video-thumbnail
* Unnecessary change
* [FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.14.1 (#2859)
* [IMPROVEMENT] Check for focused rooms on in-app notifications (#2857)
* Update InAppNotification and room reducer
* Update InAppNotification
This reverts commit 60330a1e04cfe8d2e5aa311f367083d831682c49.
* Stop subscribing to threads
* Remove ref
* Fix prop-types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Real name being ignored in SearchMessagesView (#2838)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove unnecessary share reducer calls (#2861)
* Remove unnecesary share reducer calls
* Update Avatar
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Breadcrumbs exceeding characters limit (#2862)
* [FIX] breadcrumbs exceeding
* fix.breadcrumbs-exceeding-change-events
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App compressing videos on iOS (#2915)
* Update index.js
* Update index.js
* [FIX] Real name setting ignored on reply preview (#2908)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reply component sending unused prop to Description (#2900)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme
* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar
* Updated MultiSelect
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Webview not falling back to default auth challenge when no cert is provided (#2918)
* [FIX] Android - fallback to default auth challenge handling when no cert is provided
* If a certificate auth challenge is requested on Android the webview will hang if no certificate is loaded.
To prevent this, fallback to default Android behavior and cancel the challenge with request.cancel()
* No client certificate case defaults to super implementation
* Update react-native-webview
* Downgrade to previous dependency version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
* [FIX] Support Jitsi_URL_Room_Hash (#2905)
* [FIX] Temp attachment files not being flushed after saved to gallery (#2871)
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Update iOS profiles for Experimental app (#2933)
* [IMPROVE] Deleted thread reply redirects to thread (#2840)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Thread showing typing indicator from main room (#2869)
* [FIX] Remove typing indicator from thread's header
* remove unnecessary props and change usersTyping condition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room
* Undo changes
* Check if current typing is from focused room before dispatching to redux
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't copy or edit media's description (#2885)
* [FIX] Image descriptions issues
* shorten the condition string
* fix selectedMessage state
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] RightButtonsContainer re-render check not returning default value (#2899)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks
* Minor fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not sending second argument for EventEmitter.removeListener on some places (#2909)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] System message of e2e encryption is missing (#2888)
* [FIX] System message of e2e encryption missing
* add new encryption string
* add to stories
* Add pt-BR
* Move stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add permissions to Redux (#2914)
* [FIX] Add permissions to Redux store
* add only permissions being used in the app
* add clear permissions reducer
* call RocketChat.hasPermission from reducer
* add server version comparison on getPermissions
* refactor hasPermission function
* refactor hasPermission function
* remove uncomment code
* use Q.experimentalSortBy()
* add coerce function
* Change Rocketchat.hasPermission
* Apply on isReadOnly
* Apply to RoomInfoEditView
* Apply to RoomInfoView and RoomInfoEditView
* canAutoTranslate
* Unnecessary clear permissions
* Revert getUpdatedSince
* Naming fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add hold step for ios and android build experimental (#2943)
* [CHORE] Add hold step for ios-build-experimental and android-build-experimental
* Android hold step
* add ios hold step
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual
* Update ReplyPreview.js
* Remove react-fast-compare
* Removed deep-equal and upgrade babel-eslint dev dependency
* Fix avatar
* Fix Messagebox
* Fix CreateDiscussionView
* ModalBlockView
* NewMessageView
* ProfileView
* RoomInfoEditView
* ServerDropdown
* Return local search as object instead of observable
* SelectedUsersView
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing Russian strings (#2946)
* [i18n] Add missing Russian strings
* Couple fixes
* Fix Direct_message
Translate Direct_message as already has been translated
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Use List.Separator in all places (#2931)
* [FIX] Use List.Separator in all places
* add List.Separator
* change List.Separator
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Limit new message list query size to 50 (#2947)
* Limit query to 50
* Remove observable
* [FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Minor refactor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactions modal's backdrop color too light (#2949)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.15.0 (#2950)
* [FIX] Share extension not working correctly on Official app (#2963)
* [FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary
* Use JS SDK branch
* Stop reconnecting if it's already connected
* Fix RoomsListView forever loading after tapping push notification of another server
* Execute fewer operations on app/index
* Remove roomsRequest call from onForeground
* Apply check and reopen
* Stop opening in-app notification when the app is on backgorund
* Connecting tweaks
* Fix deep linking not working if the app is on background
* Force reset yarn cache
* Upgrade JS SDK
* Remove listener on unmount
* Fix resume on Android after back button is pressed
* Fix local authentication resume
* Fix back button android
* Change JS SDK branch
* [FIX] Messagebox's placeholder color is too bright (#2968)
* [IMPROVEMENT] Message attachment colors (#2860)
* Added convertStrToHex function and updated Reply component
* Removed convertStrtToHex function and added attachmentBackground
* Added color2k, removed transparent view and applied transparentize to backgroundColor
* Added stories
* Update Reply stories
* Update Reply stories
* Fix lint
* Update Reply stories
* Fix props
* Move tests to Message stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace
* Added e2e tests
* Update login.js
* Update logout.js
* Reverted changes on login and share, updated init
* Update 08-persistantworkspace.spec.js
* Revert unnecessary changes
* Revert line change
* Update share.js
* Tweak tests
* Use wm shorthand
* Remove irrelevant calls to RocketChat.TOKEN_KEY
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to draft message (#2960)
* [E2E TEST] Draft message
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to group DM (#2961)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to directory (#2964)
* [E2E TEST] Directory
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed
* Added lte and gte functions and updated imports
* Updated functions names
* Update util functions
* Update util function and added methods
* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms
* Fix comparison
* Update getPermissions.js
* Remove unused import
* Fix lint
* Fix lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to discussions (#2970)
* [E2E TEST] Discussions
* fix error Cannot find UI elemen
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Attachment not rendering markdown (#2924)
* [FIX] Render markdown in Fields content
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add e2e tests for mark message as unread (#2953)
* [E2E TEST] Add e2e tests for mark message as unread
* fixed test for draft message
* change test name
* move test to other file
* Remove unnecessary tests
* Rename file
* Update jest tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to delete server (#2954)
* [E2E TEST] Delete server
* fixed test for delete server
* fix tests
* minor changes
* Rename file
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor RoomActionsView permissions (#2872)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js
* Updated loginTOTP
* Added validation
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Fix resolve
* Remove incognito
* Fix totp being requested on webview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] User status icons (#2991)
* Add status and teams
* Update icons, icon size and getUsersPresence
* Minor changes
* Refactor RoomTypeIcon
* Minor tweaks
* Update unit tests
* Minor fixes
* Fix styles
* Small refactor
* Update jest
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [REGRESSION] Auth via deep linking not working (#3015)
* Update rocketchat and add e2e test for deep linking
* Update rocketchat and add e2e test for deep linking
* Update deeplinking e2e
* fix deep linking auth
* Test deep linking auth
* Fix deeplink to rid and add tests
* Small refactor
* Add non existing server test
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Create discussion request being sent with null value on encryption param (#3033)
* [CHORE] Use JSON files for i18n (#3011)
* [IMPROVEMENT] Load only i18n files needed (#3014)
* Use json
* Load only i18n files needed
* [REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache
* Write e2e tests
* Fix lint
* Fix isRTL
* [FIX] Custom OAuth and iframe login attempts being called multiple times (#3020)
* [FIX] App crashing when attachment color is an invalid HEX (#3021)
* [IMPROVEMENT] Add "Message" option to Room Info (#3029)
* [CHORE] Go to room from hashtag
* Layout tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't change status (#3018)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Search input not using the whole header space (#3012)
* [FIX] Search input not using the whole space
* Fix on getHeaderTitlePosition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2EE password hiding automatically (#2972)
* [FIX] E2EE password hiding automatically
* add e2e test
* fixed hiding banner
* move e2e tests to 01-e2eencryption
* remove console.log
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Move threads tests to its own file (#2965)
* [E2E TEST] Move threads test to another file
* changed descirbe title
* Rearrange files
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Regex typo on markdown (#2928)
* [FIX] Fix Regex Typo
* Add story for testing
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Make attachment validation compatible with web client (#2927)
* [FIX] Make attachment validation compatible with web client
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Non-reply attachments displaying time (#2902)
* Remove time if no message_link
* Fix message stories for replies
* Final stories fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label
* Add to register and add missing strings
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036)
This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807.
* Bump version to 4.16.0 (#3037)
* [NEW] Basic support to Teams (#3016)
* Database migration
* RoomItem icon
* Team icons
* Teams group
* Small tweak on RoomTypeIcon
* RoomView Header
* Add team's channels to RoomView header
* Starting TeamChannelsView
* Icon size
* o data found
* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView
* Use teams.ListRooms endpoint, render rooms list, remove unused functions
* Show team main on TeamChannelsView
* Disable swipe
* Pagination working
* Fix blinking no data found
* Search working
* Refactor to use BackgroundContainer while loading
* Go to room
* Cleanup
* Go to actions
* Events
* Lint
* Add debounce to go room
* Fix for tablet
* i18n
* Small fix
* Minor refactor
* Use local data when it exists
* Show last message
* Force teams migration
* Add stories to BackgroundContainer
* Remove unused component
* Move RoomViewHeader into containers folder
* Refactoring
* Testing RoomHeader
* i18n
* Fix server endpoint version
* Fix events
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions
This PR focuses on improving command, emoji, channel and user mentions.
* [Tests] Added e2e tests for mention improvement
* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /
* Return data on search for empty text
* Minor fixes
* Update e2e tests
* Minor fix
* [FIX] allow command mentioning in between text
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Status text not being updated on sidebar (#3041)
* Update StatusView.js
* Minor tweak
* Minor tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unable to search non-latin alphabet names on members list (#3039)
* Add search by name in members list
* Update RoomMembersView search
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Search stops working after some time (#3044)
* Bump version to 4.17.0 (#3058)
* [CHORE] Add job to upload Experimental to Google Play production (#3050)
* [REGRESSION] SAML stopped working after #2978 (#3060)
* [REGRESSION] Room actions not loading on tablet (#3061)
* Bump version to 4.16.1 (#3063)
* [REGRESSION] Fallback language stopped working (#3072)
* [CHORE] Update Detox to 18.10.0 (#3052)
* Updated detox and 5 tests
* Update e2e cases for Detox v18, update setUserStatus and added SET_STATUS_FAIL
* Downgrade mocha
* Exclude arm64 from building and update tests cases
* Update more tests cases, add registeringUser4
* Update more test files and add room-actions-scrollview testID
* Update package.json
* Remove unused username from test file and update 08-roominfo test file
* Fixing
* Mark as unread
* Fixing flaky tests
* Minor fixes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Message author touchable taking whole space available (#3048)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [CHORE] Improve stories (#3028)
* [CHORE] Improve stories
* Refactor Avatar and UIKitModal
* fixed undefined 'name'
* Remove commented stories
* Remove Markdown from stories/index, update Markdown test file and remove markdown stories from Message stories
* Remove StoriesSeparator
* Refactor Markdown
* Remove commented lines of code
* Small refactor
* Re-add stories
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.17.0 (#3083)
* [REGRESSION] Fallback not working when device's language is available (#3091)
* Always add 'en' i18n
* Add tests
* Bump version to 4.16.2 (#3092)
* [FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3139)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
* [NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Tests not working because of ES6 import (#3147)
* Update ITeam.js
* Minor tweak
* [NEW] Leave Teams (#3116)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Jump to message (#3099)
* Scrolling
* Add loadMore button at the end of loadMessagesForRoom
* Delete dummy item on tap
* Only insert loadMore dummy if there's more data
* load surrounding messages
* fixes and load next
* First dummy and dummy-next
* Save load next messages
* Check if message exists before fetching surroundings
* Refactoring List
* Jumping to message :)
* Showing blocking loader while scrolling/fetching message
* Check if message exists on local db before inserting dummy
* Delete dummies automatically when the message sent to updateMessages again
* Minor cleanup
* Fix scroll
* Highlight message
* Jump to bottom
* Load more on scroll
* Adding stories to LoadMore
* Refactoring
* Add loading indicator to LoadMore
* Small refactor
* Add LoadMore to threads
* getMoreMessages
* chat.getThreadMessages -> getThreadMessages
* Start jumping to threads
* Add jumpToMessageId on RoomView
* Nav to correct channel
* Fix PK issue on thread_messages
* Disable jump to thread from another room
* Fix nav to thread params
* Add navToRoom
* Refactor styles
* Test notch
* Fix Android border
* Fix thread message on title
* Fix NavBottomFAB on threads
* Minor cleanup
* Workaround for readThreads being called too often
* Lint
* Update tests
* Jump from search
* Go to threads from search
* Remove getItemLayout and rely on viewable items
* Fix load older
* stash working
* Fix infinite loading
* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable
* Add generateLoadMoreId util
* Minor cleanup
* Jump to message from notification/deep linking
* Add getMessageInfo
* Nav to threads from other rooms
* getThreadName
* Unnecessary logic
* getRoomInfo
* Colocate getMessageInfo closer to RoomView
* Minor cleanup
* Remove search from RoomActionsView
* Minor fix for search on not joined public channels
* Jump to any link
* Fix tablets
* Jump to message from MessagesView and other bug fixes
* Fix issue on Urls
* Adds race condition to cancel jump to message if it's stuck or after 5 seconds
* Jump from message search quote
* lint
* Stop onPress
* Small refactor on load methods
* Minor fixes for loadThreadMessages
* Minor typo
* LoadMore i18n
* Minor cleanup
* [FIX] Method calls not sending date params as EJSON (#3159)
* [FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Remove member from team (#3117)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Added confirmationAlert for missing permissions case
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add Existing Channel screen showing discussions and channels without permission (#3151)
* [Fix] the filter to show the existing channel
* [Refactor] the function that filter to isolate it
* Refactor how to wsearch properly
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Member search not trimming search text (#3129)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
* Handling member search with spaces to the left and right of name/username
* Changing location of string trimmer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room
* E2E - Update previous roomView count after send msg in discussion
* Not needed rn
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Team creation not raising error if something unexpected happens (#3152)
* [IMPROVEMENT] Add error to AddExistingChannel
* Fix the alert error when create a channel
* Fix the error alert box when create channel and teams
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check permissions on team channels action sheet (#3155)
* [IMPROVEMENT] Show only the option that user can manage in TeamChannelsView
* Refactor the showActionSheet function
* Added remove team channel permission
* Cleanup
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add channels to team's flow using different navigators (#3157)
* [FIX] the navigation to AddChannelTeamView and next screens
* Fix the order inside the NewMessageStackNavigator
* Delete spaces after arrow function in onPress
* Adjusted InsideStackNavigator to a conditional animation
* Fixed route for iPad
* Small change
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Allow discussions to be edited (#3137)
* Refactored the filter to work the edit for channel and discussion
* Removed the filter which type of room can be edit
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Delete Teams (#3123)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Minor tweaks
* Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Android navigation bar color when Loading modal appears (#3165)
* [FIX] Modal appearance
* Undo and only add android:navigationBarColor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check for old servers for Teams (#3171)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Convert/Move Channel to Team (#3164)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView
* Fix icon
* Minor tweaks
* add tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add logEvents for Teams (#3182)
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Disable jitsi call for teams (#3183)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db
* Minor nitpick
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status
* Added error to pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Item not animating on tap on team's channels view (#3187)
* [FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3192)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Support Google OAuth from external browser (#3134)
* Deep linking to the app
* Handle deep linking
* Bump version to 4.17.0 (#3093)
* Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92efa45fef3938afbb92be52b97cb16358.
* [FIX] Teams tests (#3196)
* Make team_main not optional and fix tests
* Undo isOptional and fix query
* Comment
* [FIX] Wrong system messages being passed as parameters to room save (#3197)
* [FIX] RoomItem's long press crashing the app if prop is missing (#3199)
* Check onLongPress prop
* Add Touch stories
* [FIX] Crashing on link press (#3204)
* [FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] Fixed E2E tests (#3201)
* [FIX] Test E2E i18n
* 01-createroom and 02-room fixed
* 03-roomactions and 04-discussions
* 05-threads and 07-markasunread from room
* Test 07-markasunread
* Set notifications 'YES' and delete true in 03-forgotpassword and 04-createuser
* Fixed the data that 02-team uses and changed the message in 07-markasunread
* Added group.alternate to data.docker and commented the test for the fallback language
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions
* add redux action for update
* Minor tweaks
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [IMPROVE] Subscribe to settings (#3222)
* Add action and reducer
* Add streamNotifyAll listener
* Minor tweak
* Minor tweak
* Fix update not taking in consideration other type columnns
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Add Lint to E2E tests (#3217)
* Added eslint plugin dependencie and fixed the eslint.js
* E2E Tests folder Assorted
* Linted all e2e, just e2e/docker that don't changed
* Update 09-jumptomessage.spec.js
* Removed async from describe function
* Remove outdated detox linter lib
* Add overrides to eslintrc
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout
* Add loginEmailPassword to loginOAuthOrSso
* Add isFromWebView field
* Fix migrations
* Minor tweak
* Fix OAuth for other services
* Fix migrations
* Stop persisting loginEmailPassword
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3251)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Message body readability on dark themes (#2981)
* [CHORE] Apply auxiliaryText on message body
* change bodyText to uxiliaryText
* Update tests
* Update bodyText color and rollback PR changes
* Update Storyshots.test.js.snap
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Subscribe to settings making app to hang on login (#3254)
* [FIX] Poor performance in messages list on Android 11 (#3260)
* Bump version to 4.18.0 (#3252)
* [FIX] Create team crashing the app (#3248)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel
* Minor tweak
* [IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp
* Fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3269)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups
* Remove i18n
* Regression: Settings pagination not working (#3277)
* Regression: Markdown handlePress not working properly (#3278)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Improve QA workflow (#3285)
* Chore: Update dependencies (#3206)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Update android image to api 29 and xcode to 12.4
* building
* Fix lint
* Get rid of Storybooks errors
* Patch react-native-simple-crypto
* Remove pods from git
* Stash simple crypto
* Stash Flipper
* Remove single crypto patch
* Add manage-pods command
* Update Xcode to 12.5.0
* Fix E2E tests
* Cleanup podfile
* Fix Storybook
* Remove RN patch
* Fix iOS build release
* Fix cocoapods cache on CI
* Try to fix pods using bundle
* Update gems
* Add app_store_connect_api_key env to CI
* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64
* Rollback to older usage of app_store_connect_api_key
* tmp
* Run manage-pods on TestFlight
* Use Podfile instead of Podfile.lock for cache
* Increase no_output_timeout from 20 minutes to 40
* Restore node modules on upload-to-testflight
* Add pod install to docs
* Chore: Run lint and tests on staged files only (#3291)
* Bump version to 4.19.0 (#3307)
* Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native
* Really remove bugsnag from android
* Install @bugsnag/react-native
* Logging error on Android correctly
* Cleanup
* Fix bugsnag mock
* iOS builds
* Fix CI mistake
* Upload dSYMs to Bugsnag
* Upload source maps automatically on iOS
* Cleanup
* Enable Bugsnag on share extension
* Add test error
* Use large macos
* Bump to 4.19.0 temporarily to test on TestFlight official
* Use temp keys
* Fix upload source maps for Official iOS build
* Remove tests
* Set version back to 4.18.0
* Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error
* Title in alert
* Disable button when the user donesn't have the role permission
* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash
* Check if the error eis translated before parse through i18n
* Remove unnecessary code
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading
* Added animation to backdrop opacity
* Minor tweak
* Fix internal image impacted by opacity
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension
* Cleanup
* [FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat
* Added the permission to edit livechat room custom fields
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat
* [FIX] Custom fields labels and values
* refactor field
* Added the permission to edit livechat room custom fields
* Fix the inputs.focus()
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat
* [FIX] Tags with multiselect and tagParamsSelected
* Removed console.log and the new set to filter
* Added the permission to edit livechat room custom fields
* Change Title Livechat_edit to Edit
* Added marginBottom to multiSelect
* Added marginBottom to multiSelect
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both
* Removed console.log
* minor tweak
* Enable and disable crashlytics and remove breadcrumb from bugsnag
* minor tweaks with the names of the variables
* minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view
fixes: #2853
* Add stories for thumbnails and update test
* [Test] Update tests
* added stories
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list
fixes: #2684
* Changed the Button and theme, text theme and how to call the function
* Fix the props passed in Message
* Function to context
* Added button attachment to stories
* New snapshot
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages
* Minor tweak
* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined
* Added some team errors in i18n
* Added unauthorized to i18n
* Test if there is channel name too, to prevent to show {missing roomName}
* Refactor the treatment error to check if exists before translate with i18n
* Remove some check conditional points
* Minor tweak
* Added array with error inside the createChannel
* Moved error array to inside the handleFailure
* added creating_discussion
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java
* Update MainApplication.java
* Downgrade react-native-orientation-locker
* Pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] TextInput breaking line (#2873)
* Update TextInput's padding
* Chante textAlign to auto and to ellipses longer text than the width
* Added story with changes in text input
* Changed in TextInput stories
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps
* Update react-native-jitsi-meet
* Working on iOS from Jitsi source
* Dependencies installed
* Temp android
* Kinda working android
* Working on iOS with our SDK
* Use our maven repo
* Fix temp maven url
* Cleanup
* Fix maven url
* Bring chat back
* Add activity indicator
* Update react-native-jitsi-meet
* Fix loading on iOS
* Clear gradle cache
* Try 3.6.0
* Dummy change to update gradle cache
* Point to merged forks
* update pod commit
* Bump version to 4.20.0 (#3366)
* Chore: Start Typescript migration (#3279)
* [IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: lint-staged not working properly(#3382)
* Chore: Remove CocoaPods folder (#3381)
* Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript
* TODO -> TODO:
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
* [NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Preserve voice message if recording is interrupted (#3397)
* https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3388/commits/7c259096713a73e4e39467b45298222ca16a9d5e
* Minor changes
Co-authored-by: Marco Jakobs <mj@jacotec.de>
* [IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Point to new white label URL (#3402)
* [FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet
* removed refreshControl
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Abdullah Alhamoud <10301923+abalhamoud@users.noreply.github.com>
Co-authored-by: David-Tsui <st880221@gmail.com>
Co-authored-by: Dave Koo <dkoo761@gmail.com>
Co-authored-by: Graham Smith <graham@wiseman-designs.com>
Co-authored-by: Fazil Boudjelal <fazildiablou@hotmail.fr>
Co-authored-by: Lucas Dousse <Cormoran96@users.noreply.github.com>
Co-authored-by: Sumukha Hegde <SUMUKHA214@GMAIL.COM>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: phriedrich <info@phriedrich.de>
Co-authored-by: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com>
Co-authored-by: Hakan YILMAZ <mukerrem.yilmaz@hotmail.com>
Co-authored-by: Vincenzo Esposito <aenon.esposito@gmail.com>
Co-authored-by: Arkadyuti Bandyopadhyay <bandyopadhyayarkadyuti@gmail.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gung Wah <41157464+kresnaputra@users.noreply.github.com>
Co-authored-by: Billy Newman <newmanw10@gmail.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
Co-authored-by: ankar84 <ankar84@gmail.com>
Co-authored-by: sadegh <sadeghmohamadnia@yahoo.com>
Co-authored-by: Noach Magedman <nmagedman@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
Co-authored-by: Diego Sampaio <chinello@gmail.com>
Co-authored-by: Chris Price <56982873+cprice-kgi@users.noreply.github.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2021-10-01 18:12:09 +00:00
|
|
|
...[1, 2, 3, 4, 5, 6, 7, 8, 9].map(value => ({
|
|
|
|
input: `${value}`,
|
2019-12-11 23:01:12 +00:00
|
|
|
modifierFlags: constants.keyModifierCommand | constants.keyModifierAlternate
|
Merge 4.20.0 into master (#3412)
* [FIX] App not prompting join code for password protected channels (#2514)
* Adding joinCode parameter
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Insert join code input
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add joinCode field on db
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add label i18 pt-br and en-us
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add insert join code text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Fix atribute name
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add join text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Fix attributes joinCode, joinCodeRequired and pass attribute param in navigation
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Fixing attribute joinCodeRequired pass to goRoom
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Changed textinput style
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Delete not necessary attribute
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Fixing input style
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Undo unncessary changes
* use a join code modal
* tests: e2e tests to join protected channel
* fix: undo unnecessary change
* tests: cancel join code
* Remove some tests
* Minor fixes
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18n] Add Arabic (#2537)
* Arabic language setup
* Added arabic translation
* Arabic translation Proofreading
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing zh_TW and zh_CN strings (#2680)
* feat(i18n): add some missing strings and improve some translation
* fix: add missing server version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Add username on status messages (#2553)
* 1689 - missing user name for status messages
* 1689 - missing user name for status messages. Fixed broken e2e test "should pin message".
* Minor tweak
* Remove center style
* Small refactor on User
* Remove toLowerCase
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Filenames are incorrect in non-latin alphabets on upload (#2671)
* fix: filename on react-native-image-crop-picker
* fix: use rn-fetch-blob to upload files
* fix: FileUpload as a service
* fix: cancel upload on iOS
* fix: file upload from share extension
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Ease white labelling for Android (#2685)
* improve white labelling for Android
* Move application ID to gradle properties
* Fix CI
* Point foss sufix to main app
* Use npx on android-whitelabel script
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Chats order (#2688)
* Persist highest value on subscription.roomUpdatedAt
* Update tests
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [REGRESSION] Re-enable Jitsi Chat (#2687)
* Fix main jitsi
* Fix iOS
* Clear build.gradle cache
* Don't restore gradle
* cache is back
* Use master
* Point to react-native-jitsi-meet#master
* [CHORE] Build official apps on CI (#2701)
* Duplicated target and changed Bridging Header
* Display name
* Unnecessary dumb swift file removed
* Buildable name
* Reorder Info.plist
* Rename Official target's bundle id
* Ignore .mobileprovision
* Fix provisioning of official app
* Starting signing
* stash fastfile
* starting official ci iOS
* Uncomment Fastfile keychain
* Fix CI config
* allowProvisioningUpdates
* Changing AppIcon and Splash Screen
* Remove unnecessary folder inside of Images.xcassets
* Reorder notificationservice and shareextension plists
* Fix signing
* Manual signing style for official
* Split official signing
* Update project provisioning
* Use ENV as profile
* Output match
* Keys
* TestFlight refactor
* Setting up android
* android-official-play-build job
* Start removing unnecessary fastlane tasks on Android
* Trying to refactor Android jobs
* android-env
* Remove foss build for now
* Fork
* Fix if conditions
* Fix push
* ios-build command
* Rename Android builds
* Upload dSYMs
* Refactoring workflow
* Reorder upload-to-testflight
* upload-to-google-play-beta command
* Fix ci
* Fix android fork build
* Fix keystore
* Fix options on fastlane android
* Fix keystore
* Check isOfficial on iOS
* Check isOfficial on db
* Remove unused imports
* Database names on Android
* Tag fix
* Minor fixes
* Set IS_OFFICIAL on CI
* Fix detox
* follow review suggestions
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [i18n] Update fr (#2697)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [i18n] Update fr (#2705)
Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Empty space on Messagebox (#2704)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Yarn android scripts (#2716)
* [CHORE] Rename Experimental iOS lane (#2717)
* Move build_fork to the end
* Rename release to build_experimental
* [IMPROVEMENT] Use class variable instead of state for List's animated (#2718)
* [FIX] Bottom sheet being hidden sometimes (#2722)
* [IMPROVEMENT] Match background and text mention colors (#2723)
* [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726)
* Remove sequential empty spaces from Markdown preview
* Use Markdown preview on RepliedThread
* [FIX] Official app without sharedUserId (#2734)
* [CHORE] Update React Native to 0.63.4 (#2737)
* Bump version to 4.13.1 (#2739)
* [REGRESSION] Multiple uploads not working on iOS (#2738)
* Update React Native to 0.63.4
* Fix multiple uploads not working on iOS
* [FIX] Unable to save attachment on iOS (#2743)
* Fix rn-fetch-blob's document dir without forward slash
* Update camera roll
* [FIX] Generate Jitsi access token when making a call (#2694)
fixes: #2693
# Please enter the commit message for your changes. Lines starting
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Channels list not following the same sorting logic from web client (#2763)
* [FIX] Pods lost on Official target (#2764)
* [FIX] RoomItem using deprecated animated event signature (#2771)
* [FIX] Server autocomplete text breaking line (#2774)
* [FIX] ServerDropdown flashing bigger server icon (#2775)
* [FIX] ServerDropdown flashing bigger server icon
* Remove unused logo and update image path where needed
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rooms list not being updated on some cases (#2765)
* Request subscriptions on RoomsListView.constructor
* Removes opened rooms from last message persisting
* Change server reducer
* Prevent undefined ids causing query error
* [FIX] Share Extension hitting memory limit on iOS (#2788)
* [FIX] Disallow swipe to dismiss on share extension
* Limit query to 20 and clean up props
* Remove rn-extension-share branch pointer
* Test new branch
* Remove branch
* [IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details
* fix: re-render Thread Messages Item
* fix: update snapshots
* improve: thread details component
* fix: cast replies length
* improvement: format date of threads
* improvement: thread details styles
* fix: wrap text
* tests: update snapshot
* improvement: use same date format for all dates
* Icon size 24
* Remove date
* Remove prop drill
* Badge position
* Badge container tweak
* Fix inline style
* Move ThreadDetails to containers
* Update stories
* Fix lint
* Remove wrong prop
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove some migrations (#2792)
* Remove force rooms refresh
* Remove MMKV migration
* Bump version to 4.14.0 (#2797)
* [FIX] Messagebox tracking lost on pop gesture navigation (#2799)
* Use setTimeout instead of InteractionManager
* Update tracking lib
* [FIX] Back button closing activity when on root stack screen (#2804)
* Make hardware back button to behave as home button on root screens
* Remove unnecessary code
* Remove handleBackPress from OnboardingView
* Fix lint
* [i18n] Add missing German strings (#2715)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Encrypted Discussions (#2813)
* I18n key fix
* Add encrypted switch
* Remove unused i18n keys
* Add enabled to encryption reducer
* Show encrypted option on CreateDiscussionView only when e2e encryption is properly set
* Add localSearch and use it on search
* Use encrypted from parent channel
* Fix method calls as rest api with 2fa enabled
* Fix logout after reset keys
* Use encryption reducer instead of lib directly to check render
* Check for room type logic to display encryption option on create discussion
* Check toggle-room-e2e-encryption permission on RoomActionsView
* Check for encryption status instead of setting on server
* Fix
* Disable switch instead of hide it
* Fix spotlight for DMs
* Fix server test
* [FIX] Messagebox missing style for text color (#2786)
* Changing auxilaryTintColor
* Changed Placeholder color to BodyText color
* added color prop
* eslint changes
* used array for styles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Update arabic (#2696)
* Update ar.js
* Update ar.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Workspace input without i18n (#2689)
* [FIX] Translation of strings in Login page
* Strings are added for translation.
fixes: #2620
* Add pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Spotlight returning duplicated entries (#2805)
* Update rocketchat.js
* Updated search function
* Minor improvements
* Remove atIndex
* Add remove logic to remove duplicate data from response
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor ServerItem (#2778)
* Updated ServerDropdown and ServerItem
* Added ServerItem stories
* Update ServerDropdown.js
* Updated ServerItem stories
* Updated ServerItem stories and ServerItem component
* Updated SelectServerView, ServerItem and ServerItem stories
* Updated ServerItem stories
* Updated ServerItem stories
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [DOCS] Updated Quick Start docs link in e2e/readme (#2802)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add Turkish (#2793)
* Turkish language support added
* Update tr.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Lint on #2793 (#2818)
* [I18N] Add missing german strings (#2689) (#2820)
* [I18N] Add missing italian strings (#2817)
* [FIX] Server version becoming null on server change (#2821)
* [FIX] Wrong styling on E2E encryption banner (#2767)
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner (#2767)
* Updated SortDropdown, ListHeader, ListItem and added stories for List.Item
* Updated SortDropdown
* Removed unused component
* Updated List.Item and stories
* Reverted unnecessary changes and updated ListItem stories
* Fix minor indentation
* Stop breaking Touch's default underlay color
* Fix indentation
* Remove falsy comparison from render
* Fix left icon
* Use List.Item on OmnichannelStatus
* Add missing separator
* Lint
* Fix sort dropdown
* Remove unnecessary styles
* Fix detox
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App Store using Experimental's app id (#2826)
* [FIX] Wrong username on push notifications (#2825)
* [FIX] Share extension memory issues on iOS (#2845)
* Remove unnecessary class prop
* Stop rendering servers when there's only one
* Map and alloc only necessary columns from query
* Fetch servers count instead of all servers records
* Fetch only needed servers
* Separators
* Remove renderContent
* Minor fix
* Refactor query
* Smaller avatars in memory
* Fix getItemLayout
* Add topic
* Load less pods
* tests
* Import only used functions from lodash
* Fix pods
* Import only used functions from semver
* Fix media sharing
* Update pods
* Disables preview and thumb on iOS
* Update expo-video-thumbnail
* Unnecessary change
* [FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.14.1 (#2859)
* [IMPROVEMENT] Check for focused rooms on in-app notifications (#2857)
* Update InAppNotification and room reducer
* Update InAppNotification
This reverts commit 60330a1e04cfe8d2e5aa311f367083d831682c49.
* Stop subscribing to threads
* Remove ref
* Fix prop-types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Real name being ignored in SearchMessagesView (#2838)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove unnecessary share reducer calls (#2861)
* Remove unnecesary share reducer calls
* Update Avatar
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Breadcrumbs exceeding characters limit (#2862)
* [FIX] breadcrumbs exceeding
* fix.breadcrumbs-exceeding-change-events
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App compressing videos on iOS (#2915)
* Update index.js
* Update index.js
* [FIX] Real name setting ignored on reply preview (#2908)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reply component sending unused prop to Description (#2900)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme
* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar
* Updated MultiSelect
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Webview not falling back to default auth challenge when no cert is provided (#2918)
* [FIX] Android - fallback to default auth challenge handling when no cert is provided
* If a certificate auth challenge is requested on Android the webview will hang if no certificate is loaded.
To prevent this, fallback to default Android behavior and cancel the challenge with request.cancel()
* No client certificate case defaults to super implementation
* Update react-native-webview
* Downgrade to previous dependency version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
* [FIX] Support Jitsi_URL_Room_Hash (#2905)
* [FIX] Temp attachment files not being flushed after saved to gallery (#2871)
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Update iOS profiles for Experimental app (#2933)
* [IMPROVE] Deleted thread reply redirects to thread (#2840)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Thread showing typing indicator from main room (#2869)
* [FIX] Remove typing indicator from thread's header
* remove unnecessary props and change usersTyping condition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room
* Undo changes
* Check if current typing is from focused room before dispatching to redux
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't copy or edit media's description (#2885)
* [FIX] Image descriptions issues
* shorten the condition string
* fix selectedMessage state
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] RightButtonsContainer re-render check not returning default value (#2899)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks
* Minor fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not sending second argument for EventEmitter.removeListener on some places (#2909)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] System message of e2e encryption is missing (#2888)
* [FIX] System message of e2e encryption missing
* add new encryption string
* add to stories
* Add pt-BR
* Move stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add permissions to Redux (#2914)
* [FIX] Add permissions to Redux store
* add only permissions being used in the app
* add clear permissions reducer
* call RocketChat.hasPermission from reducer
* add server version comparison on getPermissions
* refactor hasPermission function
* refactor hasPermission function
* remove uncomment code
* use Q.experimentalSortBy()
* add coerce function
* Change Rocketchat.hasPermission
* Apply on isReadOnly
* Apply to RoomInfoEditView
* Apply to RoomInfoView and RoomInfoEditView
* canAutoTranslate
* Unnecessary clear permissions
* Revert getUpdatedSince
* Naming fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add hold step for ios and android build experimental (#2943)
* [CHORE] Add hold step for ios-build-experimental and android-build-experimental
* Android hold step
* add ios hold step
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual
* Update ReplyPreview.js
* Remove react-fast-compare
* Removed deep-equal and upgrade babel-eslint dev dependency
* Fix avatar
* Fix Messagebox
* Fix CreateDiscussionView
* ModalBlockView
* NewMessageView
* ProfileView
* RoomInfoEditView
* ServerDropdown
* Return local search as object instead of observable
* SelectedUsersView
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing Russian strings (#2946)
* [i18n] Add missing Russian strings
* Couple fixes
* Fix Direct_message
Translate Direct_message as already has been translated
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Use List.Separator in all places (#2931)
* [FIX] Use List.Separator in all places
* add List.Separator
* change List.Separator
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Limit new message list query size to 50 (#2947)
* Limit query to 50
* Remove observable
* [FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Minor refactor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactions modal's backdrop color too light (#2949)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.15.0 (#2950)
* [FIX] Share extension not working correctly on Official app (#2963)
* [FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary
* Use JS SDK branch
* Stop reconnecting if it's already connected
* Fix RoomsListView forever loading after tapping push notification of another server
* Execute fewer operations on app/index
* Remove roomsRequest call from onForeground
* Apply check and reopen
* Stop opening in-app notification when the app is on backgorund
* Connecting tweaks
* Fix deep linking not working if the app is on background
* Force reset yarn cache
* Upgrade JS SDK
* Remove listener on unmount
* Fix resume on Android after back button is pressed
* Fix local authentication resume
* Fix back button android
* Change JS SDK branch
* [FIX] Messagebox's placeholder color is too bright (#2968)
* [IMPROVEMENT] Message attachment colors (#2860)
* Added convertStrToHex function and updated Reply component
* Removed convertStrtToHex function and added attachmentBackground
* Added color2k, removed transparent view and applied transparentize to backgroundColor
* Added stories
* Update Reply stories
* Update Reply stories
* Fix lint
* Update Reply stories
* Fix props
* Move tests to Message stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace
* Added e2e tests
* Update login.js
* Update logout.js
* Reverted changes on login and share, updated init
* Update 08-persistantworkspace.spec.js
* Revert unnecessary changes
* Revert line change
* Update share.js
* Tweak tests
* Use wm shorthand
* Remove irrelevant calls to RocketChat.TOKEN_KEY
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to draft message (#2960)
* [E2E TEST] Draft message
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to group DM (#2961)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to directory (#2964)
* [E2E TEST] Directory
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed
* Added lte and gte functions and updated imports
* Updated functions names
* Update util functions
* Update util function and added methods
* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms
* Fix comparison
* Update getPermissions.js
* Remove unused import
* Fix lint
* Fix lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to discussions (#2970)
* [E2E TEST] Discussions
* fix error Cannot find UI elemen
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Attachment not rendering markdown (#2924)
* [FIX] Render markdown in Fields content
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add e2e tests for mark message as unread (#2953)
* [E2E TEST] Add e2e tests for mark message as unread
* fixed test for draft message
* change test name
* move test to other file
* Remove unnecessary tests
* Rename file
* Update jest tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to delete server (#2954)
* [E2E TEST] Delete server
* fixed test for delete server
* fix tests
* minor changes
* Rename file
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor RoomActionsView permissions (#2872)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js
* Updated loginTOTP
* Added validation
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Fix resolve
* Remove incognito
* Fix totp being requested on webview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] User status icons (#2991)
* Add status and teams
* Update icons, icon size and getUsersPresence
* Minor changes
* Refactor RoomTypeIcon
* Minor tweaks
* Update unit tests
* Minor fixes
* Fix styles
* Small refactor
* Update jest
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [REGRESSION] Auth via deep linking not working (#3015)
* Update rocketchat and add e2e test for deep linking
* Update rocketchat and add e2e test for deep linking
* Update deeplinking e2e
* fix deep linking auth
* Test deep linking auth
* Fix deeplink to rid and add tests
* Small refactor
* Add non existing server test
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Create discussion request being sent with null value on encryption param (#3033)
* [CHORE] Use JSON files for i18n (#3011)
* [IMPROVEMENT] Load only i18n files needed (#3014)
* Use json
* Load only i18n files needed
* [REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache
* Write e2e tests
* Fix lint
* Fix isRTL
* [FIX] Custom OAuth and iframe login attempts being called multiple times (#3020)
* [FIX] App crashing when attachment color is an invalid HEX (#3021)
* [IMPROVEMENT] Add "Message" option to Room Info (#3029)
* [CHORE] Go to room from hashtag
* Layout tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't change status (#3018)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Search input not using the whole header space (#3012)
* [FIX] Search input not using the whole space
* Fix on getHeaderTitlePosition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2EE password hiding automatically (#2972)
* [FIX] E2EE password hiding automatically
* add e2e test
* fixed hiding banner
* move e2e tests to 01-e2eencryption
* remove console.log
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Move threads tests to its own file (#2965)
* [E2E TEST] Move threads test to another file
* changed descirbe title
* Rearrange files
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Regex typo on markdown (#2928)
* [FIX] Fix Regex Typo
* Add story for testing
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Make attachment validation compatible with web client (#2927)
* [FIX] Make attachment validation compatible with web client
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Non-reply attachments displaying time (#2902)
* Remove time if no message_link
* Fix message stories for replies
* Final stories fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label
* Add to register and add missing strings
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036)
This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807.
* Bump version to 4.16.0 (#3037)
* [NEW] Basic support to Teams (#3016)
* Database migration
* RoomItem icon
* Team icons
* Teams group
* Small tweak on RoomTypeIcon
* RoomView Header
* Add team's channels to RoomView header
* Starting TeamChannelsView
* Icon size
* o data found
* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView
* Use teams.ListRooms endpoint, render rooms list, remove unused functions
* Show team main on TeamChannelsView
* Disable swipe
* Pagination working
* Fix blinking no data found
* Search working
* Refactor to use BackgroundContainer while loading
* Go to room
* Cleanup
* Go to actions
* Events
* Lint
* Add debounce to go room
* Fix for tablet
* i18n
* Small fix
* Minor refactor
* Use local data when it exists
* Show last message
* Force teams migration
* Add stories to BackgroundContainer
* Remove unused component
* Move RoomViewHeader into containers folder
* Refactoring
* Testing RoomHeader
* i18n
* Fix server endpoint version
* Fix events
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions
This PR focuses on improving command, emoji, channel and user mentions.
* [Tests] Added e2e tests for mention improvement
* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /
* Return data on search for empty text
* Minor fixes
* Update e2e tests
* Minor fix
* [FIX] allow command mentioning in between text
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Status text not being updated on sidebar (#3041)
* Update StatusView.js
* Minor tweak
* Minor tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unable to search non-latin alphabet names on members list (#3039)
* Add search by name in members list
* Update RoomMembersView search
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Search stops working after some time (#3044)
* Bump version to 4.17.0 (#3058)
* [CHORE] Add job to upload Experimental to Google Play production (#3050)
* [REGRESSION] SAML stopped working after #2978 (#3060)
* [REGRESSION] Room actions not loading on tablet (#3061)
* Bump version to 4.16.1 (#3063)
* [REGRESSION] Fallback language stopped working (#3072)
* [CHORE] Update Detox to 18.10.0 (#3052)
* Updated detox and 5 tests
* Update e2e cases for Detox v18, update setUserStatus and added SET_STATUS_FAIL
* Downgrade mocha
* Exclude arm64 from building and update tests cases
* Update more tests cases, add registeringUser4
* Update more test files and add room-actions-scrollview testID
* Update package.json
* Remove unused username from test file and update 08-roominfo test file
* Fixing
* Mark as unread
* Fixing flaky tests
* Minor fixes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Message author touchable taking whole space available (#3048)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [CHORE] Improve stories (#3028)
* [CHORE] Improve stories
* Refactor Avatar and UIKitModal
* fixed undefined 'name'
* Remove commented stories
* Remove Markdown from stories/index, update Markdown test file and remove markdown stories from Message stories
* Remove StoriesSeparator
* Refactor Markdown
* Remove commented lines of code
* Small refactor
* Re-add stories
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.17.0 (#3083)
* [REGRESSION] Fallback not working when device's language is available (#3091)
* Always add 'en' i18n
* Add tests
* Bump version to 4.16.2 (#3092)
* [FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3139)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
* [NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Tests not working because of ES6 import (#3147)
* Update ITeam.js
* Minor tweak
* [NEW] Leave Teams (#3116)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Jump to message (#3099)
* Scrolling
* Add loadMore button at the end of loadMessagesForRoom
* Delete dummy item on tap
* Only insert loadMore dummy if there's more data
* load surrounding messages
* fixes and load next
* First dummy and dummy-next
* Save load next messages
* Check if message exists before fetching surroundings
* Refactoring List
* Jumping to message :)
* Showing blocking loader while scrolling/fetching message
* Check if message exists on local db before inserting dummy
* Delete dummies automatically when the message sent to updateMessages again
* Minor cleanup
* Fix scroll
* Highlight message
* Jump to bottom
* Load more on scroll
* Adding stories to LoadMore
* Refactoring
* Add loading indicator to LoadMore
* Small refactor
* Add LoadMore to threads
* getMoreMessages
* chat.getThreadMessages -> getThreadMessages
* Start jumping to threads
* Add jumpToMessageId on RoomView
* Nav to correct channel
* Fix PK issue on thread_messages
* Disable jump to thread from another room
* Fix nav to thread params
* Add navToRoom
* Refactor styles
* Test notch
* Fix Android border
* Fix thread message on title
* Fix NavBottomFAB on threads
* Minor cleanup
* Workaround for readThreads being called too often
* Lint
* Update tests
* Jump from search
* Go to threads from search
* Remove getItemLayout and rely on viewable items
* Fix load older
* stash working
* Fix infinite loading
* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable
* Add generateLoadMoreId util
* Minor cleanup
* Jump to message from notification/deep linking
* Add getMessageInfo
* Nav to threads from other rooms
* getThreadName
* Unnecessary logic
* getRoomInfo
* Colocate getMessageInfo closer to RoomView
* Minor cleanup
* Remove search from RoomActionsView
* Minor fix for search on not joined public channels
* Jump to any link
* Fix tablets
* Jump to message from MessagesView and other bug fixes
* Fix issue on Urls
* Adds race condition to cancel jump to message if it's stuck or after 5 seconds
* Jump from message search quote
* lint
* Stop onPress
* Small refactor on load methods
* Minor fixes for loadThreadMessages
* Minor typo
* LoadMore i18n
* Minor cleanup
* [FIX] Method calls not sending date params as EJSON (#3159)
* [FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Remove member from team (#3117)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Added confirmationAlert for missing permissions case
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add Existing Channel screen showing discussions and channels without permission (#3151)
* [Fix] the filter to show the existing channel
* [Refactor] the function that filter to isolate it
* Refactor how to wsearch properly
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Member search not trimming search text (#3129)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
* Handling member search with spaces to the left and right of name/username
* Changing location of string trimmer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room
* E2E - Update previous roomView count after send msg in discussion
* Not needed rn
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Team creation not raising error if something unexpected happens (#3152)
* [IMPROVEMENT] Add error to AddExistingChannel
* Fix the alert error when create a channel
* Fix the error alert box when create channel and teams
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check permissions on team channels action sheet (#3155)
* [IMPROVEMENT] Show only the option that user can manage in TeamChannelsView
* Refactor the showActionSheet function
* Added remove team channel permission
* Cleanup
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add channels to team's flow using different navigators (#3157)
* [FIX] the navigation to AddChannelTeamView and next screens
* Fix the order inside the NewMessageStackNavigator
* Delete spaces after arrow function in onPress
* Adjusted InsideStackNavigator to a conditional animation
* Fixed route for iPad
* Small change
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Allow discussions to be edited (#3137)
* Refactored the filter to work the edit for channel and discussion
* Removed the filter which type of room can be edit
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Delete Teams (#3123)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Minor tweaks
* Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Android navigation bar color when Loading modal appears (#3165)
* [FIX] Modal appearance
* Undo and only add android:navigationBarColor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check for old servers for Teams (#3171)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Convert/Move Channel to Team (#3164)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView
* Fix icon
* Minor tweaks
* add tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add logEvents for Teams (#3182)
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Disable jitsi call for teams (#3183)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db
* Minor nitpick
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status
* Added error to pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Item not animating on tap on team's channels view (#3187)
* [FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3192)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Support Google OAuth from external browser (#3134)
* Deep linking to the app
* Handle deep linking
* Bump version to 4.17.0 (#3093)
* Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92efa45fef3938afbb92be52b97cb16358.
* [FIX] Teams tests (#3196)
* Make team_main not optional and fix tests
* Undo isOptional and fix query
* Comment
* [FIX] Wrong system messages being passed as parameters to room save (#3197)
* [FIX] RoomItem's long press crashing the app if prop is missing (#3199)
* Check onLongPress prop
* Add Touch stories
* [FIX] Crashing on link press (#3204)
* [FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] Fixed E2E tests (#3201)
* [FIX] Test E2E i18n
* 01-createroom and 02-room fixed
* 03-roomactions and 04-discussions
* 05-threads and 07-markasunread from room
* Test 07-markasunread
* Set notifications 'YES' and delete true in 03-forgotpassword and 04-createuser
* Fixed the data that 02-team uses and changed the message in 07-markasunread
* Added group.alternate to data.docker and commented the test for the fallback language
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions
* add redux action for update
* Minor tweaks
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [IMPROVE] Subscribe to settings (#3222)
* Add action and reducer
* Add streamNotifyAll listener
* Minor tweak
* Minor tweak
* Fix update not taking in consideration other type columnns
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Add Lint to E2E tests (#3217)
* Added eslint plugin dependencie and fixed the eslint.js
* E2E Tests folder Assorted
* Linted all e2e, just e2e/docker that don't changed
* Update 09-jumptomessage.spec.js
* Removed async from describe function
* Remove outdated detox linter lib
* Add overrides to eslintrc
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout
* Add loginEmailPassword to loginOAuthOrSso
* Add isFromWebView field
* Fix migrations
* Minor tweak
* Fix OAuth for other services
* Fix migrations
* Stop persisting loginEmailPassword
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3251)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Message body readability on dark themes (#2981)
* [CHORE] Apply auxiliaryText on message body
* change bodyText to uxiliaryText
* Update tests
* Update bodyText color and rollback PR changes
* Update Storyshots.test.js.snap
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Subscribe to settings making app to hang on login (#3254)
* [FIX] Poor performance in messages list on Android 11 (#3260)
* Bump version to 4.18.0 (#3252)
* [FIX] Create team crashing the app (#3248)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel
* Minor tweak
* [IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp
* Fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3269)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups
* Remove i18n
* Regression: Settings pagination not working (#3277)
* Regression: Markdown handlePress not working properly (#3278)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Improve QA workflow (#3285)
* Chore: Update dependencies (#3206)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Update android image to api 29 and xcode to 12.4
* building
* Fix lint
* Get rid of Storybooks errors
* Patch react-native-simple-crypto
* Remove pods from git
* Stash simple crypto
* Stash Flipper
* Remove single crypto patch
* Add manage-pods command
* Update Xcode to 12.5.0
* Fix E2E tests
* Cleanup podfile
* Fix Storybook
* Remove RN patch
* Fix iOS build release
* Fix cocoapods cache on CI
* Try to fix pods using bundle
* Update gems
* Add app_store_connect_api_key env to CI
* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64
* Rollback to older usage of app_store_connect_api_key
* tmp
* Run manage-pods on TestFlight
* Use Podfile instead of Podfile.lock for cache
* Increase no_output_timeout from 20 minutes to 40
* Restore node modules on upload-to-testflight
* Add pod install to docs
* Chore: Run lint and tests on staged files only (#3291)
* Bump version to 4.19.0 (#3307)
* Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native
* Really remove bugsnag from android
* Install @bugsnag/react-native
* Logging error on Android correctly
* Cleanup
* Fix bugsnag mock
* iOS builds
* Fix CI mistake
* Upload dSYMs to Bugsnag
* Upload source maps automatically on iOS
* Cleanup
* Enable Bugsnag on share extension
* Add test error
* Use large macos
* Bump to 4.19.0 temporarily to test on TestFlight official
* Use temp keys
* Fix upload source maps for Official iOS build
* Remove tests
* Set version back to 4.18.0
* Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error
* Title in alert
* Disable button when the user donesn't have the role permission
* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash
* Check if the error eis translated before parse through i18n
* Remove unnecessary code
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading
* Added animation to backdrop opacity
* Minor tweak
* Fix internal image impacted by opacity
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension
* Cleanup
* [FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat
* Added the permission to edit livechat room custom fields
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat
* [FIX] Custom fields labels and values
* refactor field
* Added the permission to edit livechat room custom fields
* Fix the inputs.focus()
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat
* [FIX] Tags with multiselect and tagParamsSelected
* Removed console.log and the new set to filter
* Added the permission to edit livechat room custom fields
* Change Title Livechat_edit to Edit
* Added marginBottom to multiSelect
* Added marginBottom to multiSelect
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both
* Removed console.log
* minor tweak
* Enable and disable crashlytics and remove breadcrumb from bugsnag
* minor tweaks with the names of the variables
* minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view
fixes: #2853
* Add stories for thumbnails and update test
* [Test] Update tests
* added stories
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list
fixes: #2684
* Changed the Button and theme, text theme and how to call the function
* Fix the props passed in Message
* Function to context
* Added button attachment to stories
* New snapshot
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages
* Minor tweak
* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined
* Added some team errors in i18n
* Added unauthorized to i18n
* Test if there is channel name too, to prevent to show {missing roomName}
* Refactor the treatment error to check if exists before translate with i18n
* Remove some check conditional points
* Minor tweak
* Added array with error inside the createChannel
* Moved error array to inside the handleFailure
* added creating_discussion
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java
* Update MainApplication.java
* Downgrade react-native-orientation-locker
* Pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] TextInput breaking line (#2873)
* Update TextInput's padding
* Chante textAlign to auto and to ellipses longer text than the width
* Added story with changes in text input
* Changed in TextInput stories
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps
* Update react-native-jitsi-meet
* Working on iOS from Jitsi source
* Dependencies installed
* Temp android
* Kinda working android
* Working on iOS with our SDK
* Use our maven repo
* Fix temp maven url
* Cleanup
* Fix maven url
* Bring chat back
* Add activity indicator
* Update react-native-jitsi-meet
* Fix loading on iOS
* Clear gradle cache
* Try 3.6.0
* Dummy change to update gradle cache
* Point to merged forks
* update pod commit
* Bump version to 4.20.0 (#3366)
* Chore: Start Typescript migration (#3279)
* [IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: lint-staged not working properly(#3382)
* Chore: Remove CocoaPods folder (#3381)
* Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript
* TODO -> TODO:
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
* [NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Preserve voice message if recording is interrupted (#3397)
* https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3388/commits/7c259096713a73e4e39467b45298222ca16a9d5e
* Minor changes
Co-authored-by: Marco Jakobs <mj@jacotec.de>
* [IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Point to new white label URL (#3402)
* [FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet
* removed refreshControl
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Abdullah Alhamoud <10301923+abalhamoud@users.noreply.github.com>
Co-authored-by: David-Tsui <st880221@gmail.com>
Co-authored-by: Dave Koo <dkoo761@gmail.com>
Co-authored-by: Graham Smith <graham@wiseman-designs.com>
Co-authored-by: Fazil Boudjelal <fazildiablou@hotmail.fr>
Co-authored-by: Lucas Dousse <Cormoran96@users.noreply.github.com>
Co-authored-by: Sumukha Hegde <SUMUKHA214@GMAIL.COM>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: phriedrich <info@phriedrich.de>
Co-authored-by: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com>
Co-authored-by: Hakan YILMAZ <mukerrem.yilmaz@hotmail.com>
Co-authored-by: Vincenzo Esposito <aenon.esposito@gmail.com>
Co-authored-by: Arkadyuti Bandyopadhyay <bandyopadhyayarkadyuti@gmail.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gung Wah <41157464+kresnaputra@users.noreply.github.com>
Co-authored-by: Billy Newman <newmanw10@gmail.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
Co-authored-by: ankar84 <ankar84@gmail.com>
Co-authored-by: sadegh <sadeghmohamadnia@yahoo.com>
Co-authored-by: Noach Magedman <nmagedman@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
Co-authored-by: Diego Sampaio <chinello@gmail.com>
Co-authored-by: Chris Price <56982873+cprice-kgi@users.noreply.github.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2021-10-01 18:12:09 +00:00
|
|
|
}))
|
2019-12-11 23:01:12 +00:00
|
|
|
];
|
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const setKeyCommands = (): void => KeyCommands.setKeyCommands(keyCommands);
|
2020-07-06 19:01:35 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const deleteKeyCommands = (): void => KeyCommands.deleteKeyCommands(keyCommands);
|
2020-07-06 19:01:35 +00:00
|
|
|
|
2019-12-11 23:01:12 +00:00
|
|
|
export const KEY_COMMAND = 'KEY_COMMAND';
|
|
|
|
|
Merge 4.26.0 into master (#3978)
* test
* Remove console.log
* test
* [FIX] StoryShots not working for async rendered components (#3677)
* remove console.log
* Add missing DiscussionsView snapshot
* fix build and useless done and async generator
* update snapshot
* Chore: fix build and useless done and async generator (#3678)
* fix build and useless done and async generator
* update snapshot
* Chore: Migrate Database to Typescript (#3580)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate redux module permissions to typescript (#3630)
* Chore: Migrate redux module share to typescript (#3612)
* chore: migrate redux module share to typescript
* chore: fix types
* chore: update types
* chore: migrate redux module share to typescript
* remove double import
* chore: fix import
* Chore: Migrate redux module createChannel to typescript (#3602)
* chore: migrate createChannel to ts and add tests
* chore: fix naming
* chore: add more types and remove mapDispatchToProps from components
* remove todo
* update tests
* chore: migrate interface to reducer and fix errors on return
* chore: insert IApplicationState to mapStateToProps state type
* Remove spread
* fix type
* fix import and state type
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate redux module app to typescript (#3598)
* chore: migrate activeUsers reducer and action to TS
* chore: init types folder and set redux and BaseScreen interface
* chore: remove mapDispatchToProps to use dispatch prop and clear some types
* chore: type selectedUsers action and reducer and improvement in the code of other files
* chore: move IUser to base types
* chore: move state props to ISelectedUsersViewProps
* chore: create mocketStore
* chore: remove applyAppStateMiddleware
* test: create activeUser and selectedUser tests
* test: add more selectedUsers tests
* chore: fix action type
* chore: move types to definition folder and fix imports
* chore: remove unused const
* chore: migrate redux tests to reducer folder and add eslint jest plugin
* chore: exprot initial state and then import on tests
* chore: move interfaces to reducer and import on screen
* chore: set eslint-plugin-jest version to 24.7.0
* chore: fix IUser import
* chore: update interfaces and types names
* chore: update definitions
* chore: update IBaseScreen definitions
* chore: init reducer/app migration to ts
* chore: add tests and migrate RootEnum
* wip: migrate fixed consts to RootEnum
* chore: remove redux action inferences
* fix types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate redux module createDiscussion to typescript (#3604)
* chore: migrate createDiscussion to ts and add tests
* chore: add TActionCreateDiscussion to TApplicationActions
* fix types
* update types
* fix types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] ios-testflight-experimental unable to find cache (#3684)
* Chore: Remove Non-null assertion operator in ThreadMessagesView (#3632)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate CannedResponsesListView to Typescript (#3553)
* Chore: Migrate CannedResponsesListView to TS
* Moved IcannedResponse to definitions and fixed the index
* Chore: Migrate CannedResponseDetail to TS
* minor tweaks
* refactor: update new types and interfaces for use ISubscription
* fix lint error and canned responses's dropdown
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate LivechatEditView to Typescript (#3499)
* Chore: Migrate LivechatEditView to Typescript
* refactor: minor tweak
* refactor: fix the interfaces for input
* refactor: fix lint erros
* minor tweak with new navigation types
* function
* iroom tweak
* livechateditview tweak
* TextInput tweak
* refactor: update new types and interfaces for use ISubscription
* refactor to default useState type
* change the component name in SearchBox
* changed state type
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Message press navigating to empty RoomView (#3680)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Prevent duplicated .jpg on file upload (#3658)
* [FIX] Regression: Prevent duplicated .jpg on file upload
* refactor to all files typed as image/jpeg
* isolate regexp to function
* refactor forceJpgExtension
* clean
* minor tweak
* [FIX] Regression: Prevent duplicated .jpg on file upload
* refactor to all files typed as image/jpeg
* isolate regexp to function
* refactor forceJpgExtension
* clean
* minor tweak
* refactored comment
* Chore: Migrate lib/utils to TypeScript (#3637)
* Migrate utils to TypeScript
* Add @types/semver
* Refactor compareServerVersion(currentVersion, oldVersion, func) to compareServerVersion(current, func, oldVersion)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate readMessages to TS (#3669)
* Migrate readMessages to TS
* Update IRocketChat interface
* [FIX] Unnecessary login dispatch on adding new server (#3693)
* [FIX] Disable tap gesture on call messages (#3694)
* [IMPROVE] Keep biometry option from last session (#3668)
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
* Fix reactotron multiple connections (#3622)
* Chore: Fix rocketchat interface (#3705)
* Chore: Migrate logout to Typescript (#3688)
* [NEW] Stream to get individual presence updates (#3606)
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Inject Redux store to prevent/remove require cycles (#3691)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate lib/rocketchat.js to TS - structure PoC (#3661)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* [FIX] #3606 merged using wrong JS SDK branch (#3709)
* [FIX] Remove deprecated database methods and other database operations (#3686)
* Fix PK error on subscriptions/room
* Instead of checking for pending update, wrap the call on a try catch and return null in case of error
* Generate delete operations before create/update to prevent errors
* Apply same logic on encryption
* Fix database operations on getRoles
* Fix a few database issues found on Bugsnag on ThreadMessagesView
* Run prettier :(
* Chore: Add REST API definitions from server (#3721)
* create first definitions
* chore: implements get and post types
* fix lint
* add ts-ignore
* add teams.removeRoom method
* Remove unused endpoints
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Move some methods to SDK (#3736)
* [IMPROVE] Add support for ephemeral messages inside threads (#3687)
* Chore: dehydrate small server requests away from rocketchat.js (#3740)
* Bump version to 4.25.0 (#3745)
* [Snyk] Security upgrade url-parse from 1.5.1 to 1.5.6 (#3746)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-URLPARSE-2401205
* Language update from LingoHub 🤖 on 2022-02-14Z (#3730)
* Language update from LingoHub 🤖
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
* remove draft gl
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/getSingleMessage to TS (#3700)
* migrate getSingleMessage to TS
* minor tweak
* Chore: Migrate methods/getRooms to TS (#3702)
* migrate getRooms to TS
* add sdk and set any types
* Moved the new variable around and added ts-ignore to follow the pattern from /services/restApi.ts
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate updateMessages to Typescript (#3715)
* Chore: Migrate selector/login to TS (#3731)
* migrate selector/login to TS
* Fix lint errors
* set aliases for returns
* Chore: Migrate helpers/parseUrls to Typescript (#3735)
* Chore: Migrate methods/helpers/parseQuery to Typescript (#3742)
* Chore: Migrate methods/helpers/parseQuery to Typescript
* tweak in example
* Chore: Migrate app/commands to typescript (#3697)
* Chore: Migrate lib/encryption folder to TypeScript (#3639)
* Initial commit
* add types/bytebuffer, add type definitions to params and update interfaces
* add more types and type assertions
* update types
* change bang operator by type assertion and update class variables definitions
* add types for deferred class
* minor tweaks on types definitions
* add ts-ignore
* Update encryption.ts
* update deferred and encryption
* update encryption.ts
* Update room.ts
* update toDecrypt type
* initialize sessionKeyExportedString
* remove return types
* Chore: Migrate redux actions/enterpriseModules to TS (#3698)
* migrate enterpriseModules to TS
* update test file
* Chore: Migrate database/services and database/utils to TS (#3708)
* migrate database services and utils to ts
* Migrate tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate buildMessage to TS (#3732)
* migrate buildMessage to TS
* Fix lint
* minor tweak
* minor tweaks
* Chore: Migrate getPermissions to Typescript (#3720)
* Migrating...
* Fix IPermission
* Playing with types
* Remove `as const`
* Fix lint
* Fix test
* Apply sdk
* Fix lint and autocomplete
* [FIX] Add search and fix pagination for omnichannels departments (#3621)
* [FIX] Search and pagination for omnichannels departments
* pagination complete
* minor tweak
* renamed a param and workaround for a ux bug
* fix style of flatlist and search as header scrollable
* stick the header
* Merge branch 'fix.forward-department-list' of https://github.com/RocketChat/Rocket.Chat.ReactNative into fix.forward-department-list
* refactor pagination
* fix value type
* refactor render search
* refactor layout
* make ts happy
* Chore: Migrate Markdown to Typescript (#3558)
* Chore: Migrate Markdown to TS
* Chore: Migrate Markdown to TS
* minor tweak
* added preview where markdown was preview and fixed params within markdown
* removed ts-ignore
* fix lint
* removed numbersofline={0} and default value to numberOfLines=1
* change how to import markdown preview and remove numberOfLines
* using useTheme inside markdownPreview and remove theme from components
* minor tweak on interfaces
* isNewMarkdown return as boolean
* minor tweaks
* minor tweaks
* removed unused component
* fixed markdown stories
* updated snapshot because removed numberOfLines={0} from message/content
* create IEmoji.ts in definitions and refactor all places where getCustomEmoji was called
* onLinkPress typed
* todo: refactor navtoroominfo
* formatText.test.ts
* markdown stories to typescript too
* minor tweak
* IMessage definition
* refactor: update new types and interfaces for use ISubscription
* refactor: update threadItem for use new MarkdownPreview
* refactor: rollback wrong file commited
* formatHyperlink
* fix lint
* updated item story shot
* refactor and refactor some types
* Remove non-null assertion
* Minor change on useRealName
* tweak
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/callJitsi to typescript (#3660)
* chore: migrate callJitsi to typescript
* change fixed string to type
* wip
* wip
* back to old times :)
* back to typescript
* Chore: Migrate redux module room to typescript (#3636)
* chore: migrate redux module room to typescript and remove dispatch on dependencies
* chore: add tests to redux module room
* chore: create ERoomType and use on implemention
* chore: update enum name
* fix test id
* Chore: Migrate redux module login to typescript (#3647)
* chore: migrate redux module login to typescript
chore: update redux module login tests
* update workers
* wip
* fix type
* remove partial
* add more status
* migrate the rest of the stuff to typescript
* fix tests and types
* fix types and tests
* Chore: Migrate method getSettings to typescript (#3703)
* chore: migrate getSettings to typescript and and some types
* chore: remove this and add current to code
* chore: add current
* Chore: Migrate getCustomEmojis to TS (#3724)
* update customEmoji interface and getCustomEmoji
* add sdk
* updated emojiCustom rest definition
* minor refactor
* update params object
* [FIX] getRooms request using param with wrong name (#3761)
* Chore: Migrate methods/getRoomInfo to TS (#3695)
* migrate getRoomInfo to TS
* update room type
* update types
* Fix lint error
* Chore: Migrate getSlashCommands to TS (#3711)
* migrate getSlashCommands to TS
* use sdk and update getSlashCommands
* minor tweak
* Remove implicit anys
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate getUsersPresence to TS (#3717)
* migrate getUsersPresence to ts
* use sdk and remove this context from getUsersPresence
* Chore: Migrate loadMissedMessages to typescript (#3704)
* chore: migrate loadMissedMessages to typescript
* remove loaderItem
* remove this from functions
* Chore: Migrate methods/getRoles to Typescript (#3741)
* chore: migrate getRoles to ts
* chore: removing unused const
* chore: minor tweak
* Type batch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/loadMessagesForRoom to Typescript (#3701)
* chore: change loadMessagesForRoom to typescript
* minor tweak
* chore: minor tweaks after merge with developer
* chore: minor tweaks after merge with developer
* chore: minor tweak
* chore: minor tweaks
* Fix return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate methods/sendFileMessage to typescript (#3683)
* chore: start the migration
* chore: update sendFileMessage to ts
* chore: removing an `any` from uploadQueue
* chore: minor tweak
* chore: minor tweak
* chore: minor tweaks after merge with developer
* chore: minor tweak after merge develop into current
* [FIX] Differ to Last Session Authenticated (#3667)
* [FIX] Differ to Last Session Authenticated
* Added timesync
* [FIX] Differ to Last Session Authenticated
* Added timesync
* timesync tweaks
* refactor diffLastLocalSession and saveLastLocalAuthentication
* did a race
* Update comment in app/utils/localAuthentication.ts
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* refactor getServerTimeSync and when use this route
* tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/loadNextMessages to typescript (#3719)
* feat: update loadNextMessages to ts
* minor tweak
* chore: minor tweaks after merge with developer
* chore: migrate getFileUrlFromMessage to ts (#3734)
* Chore: Migrate to Typescript mergeSubscriptionRooms and findSubscriptionsRooms (#3747)
* fix fromJSONValue type
* migrate findSubscription and mergeSubscription to typescript
* chore: fix subscription param returning null
* Chore: Migrate sendMessage to TS (#3712)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/enterpriseModules to TS (#3706)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate methods/getThreadName to typescript (#3707)
* chore: change getThreadName to typescript
* chore: change types after merge develop into current
* chore: minor tweak
* Chore: Migrate method canOpenRoom to Typescript (#3650)
* chore: migrate canOpenRoom to ts
* chore: update rocketchat types
* change types to Isubscription types
* fix: fix mergeSubscriptionsRooms (#3770)
* [IMPROVE] Team system messages feedback (#3771)
* almost there
* Update stories
* chore: removing unused function getTeamInfo (#3773)
* Chore: create definitions for e2e.setUserPublicAndPrivateKeys api call (#3775)
* Chore: Migrate RoomMembersView to Typescript (#3769)
* chore: migrate RoomMembersView to ts
* fix goRoom item interface
* Chore: Migrate views/RoomListView to typescript (#3758)
* chore: migrating RoomListView to ts
* chore: migrating RoomListView to ts
* chore: implementing types for RoomListView
* chore: change ChatsStackParamList for fix RoomListView errors
* chore: minor tweak
* chore: minor tweak
* chore: fix setTimeout type
* chore: applying changes requested
* chore: minor tweak
* Chore: Migrate to TS RommInfoEditView (#3766)
* initial commit
* fix last types
* fix import
* fix lint
* Chore: Server API types POC - loadMessagesForRoom (#3765)
* create interface and implements base types
* fix some types
* Update app/lib/methods/updateMessages.ts
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* fix date type
* apply types changes
* fix type
* fix date value
* fix types
* typescript things...
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate RoomView to Typescript (#3754)
* Chore: Migrate RoomActionsView to Typescript (#3750)
* Chore: Migrate loadThreadMessages to TS (#3718)
* Migrate loadThreadMessages to TypeScript
* Update interfaces
* Bump version to 4.26.0 (#3806)
* Chore: Migrate REST API - markAsUnread to TS (#3801)
* Migrate `subscriptions.unread` to typescript
* Chore: Migrate REST API - convertChannelToTeam to TS (#3792)
* migrate channels.convertToTeam and groups.convertToTeam to ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - getDepartmentInfo to Typescript (#3795)
* Chore: Migrate REST API - sendConfirmationEmail to Typescript (#3807)
* Chore: Migrate REST API - getRoutingConfig to Typescript (#3794)
* Chore: Migrate REST API - getRoutingConfig to Typescript
* minor tweak
* Chore: Migrate REST API - createChannel to Typescript (#3786)
* Chore: Migrate REST API - createChannel to Typescript
* removed success
* iserverroomitem
* Chore: Migrate REST API - e2eGetUsersOfRoomWithoutKey to Typescript (#3793)
* Chore: Migrate REST API - e2eGetUsersOfRoomWithoutKey to Typescript
* Update app/definitions/rest/v1/e2e.ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - register to TS (#3796)
* Migrate `user.register` to TypeScript
* Chore: Migrate REST API - createTeam to TS (#3788)
* Migrate `teams.create` REST API to TypeScript
* Chore: Migrate REST API - addRoomsToTeam to TS (#3797)
* Migrate REST API `teams.addRooms` to TypeScript
* Chore: Migrate REST API - removeTeamMember to TS (#3799)
* Migrate REST API `teams.removeMember` to TypeScript
* Chore: Migrate REST API - toggleArchiveRoom to Typescript (#3791)
* Chore: Migrate REST API - toggleArchiveRoom to Typescript
* minor tweak
* removed success param
* minor tweak
* Chore: Migrate REST API - convertTeamToChannel to TS (#3800)
* Migrate REST API `teams.convertToChannel` to TypeScript
* Chore: Migrate REST API - deleteMessage to TS (#3802)
* Migrate REST API `chats.delete` to TypeScript
* Chore: Server API types - user.setPreferences (#3781)
* chore: implementing type for test api - user.setPreferences
* chore: minor tweak
* Chore: Server API types - teams.updateRoom (#3774)
* chore: type the API call `teams.updateRoom`
* chore: creating the interface `IServerTeamUpdateRoom`
* chore: minor tweak after merge
* Chore: Migrate REST API - teamListRoomsOfUser to TS (#3805)
* migrate REST API `teams.listRoomsOfUser` to TypeScript
* update: `rooms` type on `teams.listRoomsOfUser`
* update: if-conditionals on `RoomActionsView`
* Chore: Migrate REST API - toggleBlockUser to Typescript (#3808)
* Chore: Migrate REST API - saveRoomSettings to Typescript (#3787)
* Chore: Migrate methods/loadSurroundingMessages to Typescript (#3733)
* Chore: Migrate methods/loadSurroundingMessages to Typescript
* tweaks
* tweak
* tweak
* tweaks to make ts happy
* instead as IMessage is optional u
* enum to MessageTypeLoad
* minor tweaks
* Chore: Migrate RoomInfoView to Typescript (#3778)
* Chore: Migrate RoomInfoView to Typescript
* tweak in avatar
* tweak with SubscriptionType
* minor tweak package
* Chore: Migrate RoomInfoView to Typescript
* tweak in avatar
* tweak with SubscriptionType
* minor tweak package
* react.reactelement | null
* minor tweak
* minor tweak livechatvisitor
* remove console.log
* Tweaks
* Fix: fix the command to run detox on android (#3812)
* fix the command to run detox on android (#3812)
* Chore: Migrate subscriptions/rooms to TS (#3748)
* chore: migrate subscriptions rooms to ts
* chore: adding a TODO to remember this problem
* chore: removing unnecessary todos
* chore: minor tweak after develop updates
* chore: migrate message service to ts
* chore: minor tweaks
* chore: minor tweak
* chore: minor tweak after merge develop into this branch
* chore: minor tweak after merge with dev
* minor tweak
* Chore: Migrate subscriptions/room to TS (#3752)
* chore: initial commit
* chore: fix readMessages
* chore: removing some `any`
* chore: removing some `any`
* chore: removing some `any`
* chore: fix erros after merge develop inside this branch
* chore: minor tweak
* chore: applying changes requested
* minor tweak
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - e2eRequestSubscriptionKeys to Typescript (#3813)
* Chore: Migrate REST API - merge v1/user in v1/users (#3827)
* Chore: Migrate REST API - toggleRead to Typescript (#3820)
* Chore: Migrate REST API - e2eSetRoomKeyID to Typescript (#3816)
* Chore: Migrate REST API - removeTeamRoom to Typescript (#3819)
* Chore: Migrate REST API - updateGroupKey to Typescript (#3817)
* Chore: Migrate REST API - forgotPassword to Typescript (#3818)
* Chore: Migrate REST API - updateJitsiTimeout to Typescript (#3822)
* chore: add rest api return
* chore: add rest api return
* chore: add rest api return (#3824)
* chore: add rest api return (#3825)
* chore: add rest api return (#3829)
* chore: add rest api return (#3826)
* Chore: Delete unused function getUserRoles (#3836)
* Chore: Migrate REST API - leaveRoom to Typescript (#3833)
* chore: add rest api type
* remove any
* Chore: Migrate REST API - deleteRoom to Typescript (#3834)
* Chore: Migrate REST API - removeUserFromRoom to Typescript (#3837)
* Chore: Migrate REST API - hideRoom to Typescript (#3832)
* chore: add rest api return (#3850)
* chore: add rest api return (#3849)
* Chore: Migrate REST API - setUserStatus to Typescript (#3828)
* chore: add rest api return
* chore: add rest api return
* Chore: Migrate REST API - spotlight to Typescript (#3821)
* Chore: Migrate REST API - spotlight to Typescript
* minor tweak
* chore: add rest api return (#3844)
* Chore: Migrate REST API - usersAutoComplete to Typescript (#3845)
* chore: add rest api return (#3847)
* chore: add rest api return (#3848)
* Chore: Migrate REST API - joinRoom to Typescript (#3835)
* Chore: Migrate REST API - joinRoom to Typescript
* join to discussion
* Chore: Migrate REST API - returnLivechat to Typescript (#3843)
* Chore: Migrate REST API - getRoomCounters to Typescript (#3842)
* Chore: Migrate REST API - getRoomCounters to Typescript
* minor tweak
* [FIX] Condensed layout cutting text on smaller text sizes (#3831)
* Chore: Migrate ee/omnichannel folder to Typescript (#3749)
* Chore: Migrate ee/omnichannel folder to Typescript
* omnichannelstatus and queue list
* boolean searching and react.ref
* test initi
* test and refactor interfaces
* minor tweak
* minor tweaks
* [FIX] Hardcoded E2E password for Detox workflow (#3809)
* [FIX] Removed account from E2E Data and create a file responsible for this account
* Updated e2e/README.md
* minor tweak
* Update e2e/README.md
Co-authored-by: Gerzon Z. <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z. <gerzonzcanario@gmail.com>
* Chore: Migrate REST API - getTagsList to Typescript (#3854)
* Chore: Migrate normalizeMessage to TS (#3743)
* migrate normalizeMessage to ts
* fix: missing null validations and type aliases
* Chore: Migrate REST API - e2eRequestRoomKey to Typescript (#3814)
* Chore: Remove Teams migration (#3857)
* Chore: Migrate REST API - getChannelInfo to TS (#3839)
* add: type for REST API `channels.info`
* add: `ts-ignore` to `RoomActionsView`
* Chore: Migrate search and localSearch methods to Typescript (#3751)
* chore: migrate search to typescript
* fix types
* fix type
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate REST API - getListCannedResponse to Typescript (#3858)
* Chore: Migrate REST API - getCustomFields to Typescript (#3856)
* Chore: Migrate REST API - getCustomFields to Typescript
* minor tweak
* Chore: Migrate REST API - getAgentDepartments to Typescript (#3855)
* Chore: Create IServerRoom and IServerSubscription (#3782)
* Chore: Server API types - chat.getDiscussions (#3776)
* chore: implementing type for test api - getDiscussions
* Fix DiscussionDetails count usage
* chore: update getDiscussions to use IMessageFromServer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate REST API - getTeamListRoom to TS (#3840)
* add: `teams.listRooms` types
* add: `PaginatedResult<T>` to `teams.ts`
* Chore: Dehydrate login methods from rocketchat.js (#3759)
* dehydrate login methods from rocketchat.js
* [FIX] Merge subscription and room logic using unparsed data (#3859)
* chore: add rest api return (#3864)
* chore: add rest api return (#3865)
* Chore: Migrate REST API - saveUserProfile to Typescript (#3863)
* Chore: Migrate REST API - saveUserProfile to Typescript
* minor tweak
* Chore: Update react-native-mmkv-storage to 0.6.12 (#3634)
* chore: updating mmkv library
* feat: updating android ejson to use the getSecureKey new version
* feat: updating IOS files to use the getSecureKey new version
* feat: changing all mmkv methods to use sync calls
* feat: changing mmkv methods from Screen lock
* feat: changing all mmkv methods from login, ssl certificate and change/add server
* feat: changing all mmkv methods from login, ssl certificate and change/add server
* feat: changing all mmkv methods from logout
* feat: changing all mmkv methods from e2e
* fix: small fix at encryption and server drop down
* feat: changing all mmkv methods from set theme
* feat: changing all mmkv methods from openLink
* fix: setting up mmkv to works property on Android
* fix: fix an error to set the theme when open the app
* refactor: change the react-native branch (temporary)
* refactor: removing all `Async` from mmkv functions name
* refactor: removing await from unnecessary functions, removing console.log and update cocoapods
* refactor: removing unnecessary undefined from methods
* feat: creating a custom hook for mmkv
* refactor: changing the fetchPasscode to use the useUserPreferences hook
* refactor: changing setTheme from app/index
* refactor: small fix on setTheme
* chore: update mmkv to 0.6.11
* chore: update mmkv to 0.6.11
* chore: minor tweak
* chore: update mmkv to 0.6.12
* chore: mock NativeModules
* chore: fix test mmkv
* chore: removing custom MMKV JSI module, since is no more necessary after 0.6.11 version
* feat: removing some async calls from mmkv after update from develop
* feat: creating a function to get the initialTheme
* feat: removing unnecessary try/catch
* fix: fixing the blink white when open the app
* feat: changing useMMKVStorage to create from mmkv lib
* test: creating a mock for mmkv create function
* chore: fix errors on tablet
* minor tweak
* Chore: Migrate REST API - getUserPreferences to Typescript (#3830)
* Chore: Migrate REST API - getAvatarSuggestion to Typescript (#3869)
* Chore: Migrate REST API - resetAvatar to Typescript (#3870)
* Chore: Migrate REST API - setAvatarFromService to Typescript (#3871)
* Chore: Migrate REST API - getUsernameSuggestion to Typescript (#3872)
* Chore: Migrate REST API - getMessages to Typescript (#3875)
* Chore: Migrate REST API - searchMessages to Typescript (#3874)
* Chore: Migrate REST API - getFiles to Typescript (#3873)
* [FIX] Issues after reconnecting (#3815)
* [FIX] Fix synchronization of removed subscriptions (#3768)
When a subscription is removed from the server via another client, when the
mobile app is relaunched the subscriptions were not being removed properly.
Changed the logic to use the subscriptionResult.remove array from the server
and the _id property to fix.
Co-authored-by: Christian King <cking@vonix.io>
* Chore: Migrate REST API - editLivechat to Typescript (#3878)
* Chore: Migrate REST API - getReadReceipts to Typescript (#3877)
* [FIX] ReactNativeUiLib are not installed after run pod install (#3882)
* fix ReactNativeUiLib not installed when run pod install
* committing Podfile.lock
* Chore: Migrate REST API - editMessage to Typescript (#3887)
* Chore: Migrate REST API - editMessage to Typescript
* minor tweak
* Chore: Migrate REST API - e2eResetOwnKey to Typescript (#3888)
* Chore: Migrate REST API - e2eResetOwnKey to Typescript
* Update app/lib/rocketchat/services/restApi.ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - emitTyping to Typescript (#3886)
* Chore: Migrate REST API - getRoomRoles to Typescript and fix getRoomMembers (#3868)
* Chore: Migrate REST API - getRoomRoles to Typescript and fix getRoomMembers
* change GetRoomRoles local
* Chore: Migrate REST API - addUsersToRoom to Typescript (#3884)
* Chore: Migrate REST API - addUsersToRoom to Typescript
* Update app/lib/rocketchat/services/restApi.ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* minor tweak
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - createGroupChat to Typescript (#3885)
* Chore: Migrate REST API - createGroupChat to Typescript
* Update app/lib/rocketchat/services/restApi.ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* minor tweak
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - getCommandPreview to Typescript (#3894)
* Chore: Migrate REST API - getCommandPreview and executeCommandPreview to Typescript (#3897)
* Chore: Migrate REST API - getDirectory to Typescript (#3898)
* Chore: Migrate REST API - getServerInfo to Typescript (#3900)
* [FIX] Mention from suggestions concatenates to query string on autocomplete (#3696)
* [FIX] Mention suggestion concatenate to query string
* Add function to get regexp and its tests in separate files
* Update getRegexp.ts
* Update file names
* Try new regex
* One regex for all mention types
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - readThreads to Typescript (#3866)
* chore: migrate readThreads to typescript
* fix imports
* Chore: Migrate REST API - getRoomInfo to Typescript (#3823)
* chore: add rest api return
* chore: add rest api return
* Chore: Migrate REST API - sendEmailCode to Typescript (#3891)
* Chore: Migrate REST API - sendEmailCode to Typescript (#3905)
* Chore: Migrate REST API - saveAutoTranslate to Typescript (#3892)
* Chore: Migrate REST API - runSlashCommand to Typescript (#3893)
* Chore: Migrate REST API - getSyncThreadsList to Typescript (#3896)
* Chore: Migrate REST API - getRoomMembers to Typescript (#3899)
* Chore: Migrate methods/actions to Typescript and refactor UiKit folder (#3716)
* Chore: Migrate methods/actions to Typescript
* tweak in actions
* Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* refactor sdk.current
* interface and uikit done
* refactor interface, index and utils from UiKit
* minor tweak
* minor tweak
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - removePushToken to Typescript (#3903)
* Chore: Migrate REST API - registerPushToken to Typescript (#3902)
* Chore: Dehydrate share extension from rocketchat.js (#3753)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* Chore: Migrate REST API - getThreadsList to Typescript (#3895)
* chore: add rest api return
* chore: removing sort param
* Chore: evaluate Header components - TypeScript (#3918)
* update: Header components
* Chore: Evaluate BackgroundContainer - TypeScript (#3917)
* update: `BackgroundContainer`
* remove: `theme` from `IBackgroundContainer`
* update: return type for `BackgroundContainer`
* Chore: Evaluate ActivityIndicator - TypeScript (#3914)
* update: `BackgroundContainer` and `ActivityIndicator`
* update: return type for `RCActivityIndicator`
* update: return type for `BackgroundContainer`
* [NEW] Collapsible Message (#3879)
* create new collapsible component
* create collapsible tests and update snapshot
* fix quote :)
* update snapshot
* add support to color
* add collapsed prop
* fix some styles
* fix tests
* wip
* clean
* add CollapsibleQuote story
* better style
* update snapshots
* add better tests
* remove testID
* update storyshot
* Chore: Migrate containers: Toast to Typescript (#3913)
* Chore: Migrate containers: Loading to Typescript (#3915)
* Chore: Migrate REST API - e2eFetchMyKeys to Typescript (#3942)
* [FIX] Messages not loading for unjoined channels (#3904)
* Fix message loading for unjoined channels
* Update updateMessages.ts
* log -> console.log
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: StatusBar theme and style props (#3906)
* chore: clean status bar and remove useless theme
* mend
* wip
* remove unused props
* chore: Evaluate SearchBox (#3909)
* [FIX] Wrong param sent to system message (#3943)
* [FIX] Display added user to team
* tweak when remove members from team too
* update storyshot
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* [NEW] Redesign quoted messages (#3883)
* Language update from LingoHub 🤖 on 2022-03-21Z (#3940)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Clean TwoFactor - Typescript (#3912)
* chore: clean TwoFactor
* minor tweak
* minor refactor
* chore: removing console log
* Chore: Clean Check component - TypeScript (#3919)
* chore: clear Check component
* chore: update tests
* Chore: Clean InAppNotification - TypeScript (#3920)
* Chore: Clean ThreadDetails - TypeScript (#3924)
* Chore: Clean MessageErrorActions - TypeScript (#3928)
* Chore: Evaluate TextInput - TypeScript (#3908)
* update `TextInput` component
update: ActivityIndicator
* remove: `any`
* update: `TextInput` on `UIKit`
* Fix returnKeyType
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Evaluate ActionSheet - TypeScript (#3927)
* Chore: Clean LoginServices - TypeScript (#3935)
* Chore: Evaluate Passcode - TypeScript (#3931)
* Chore: Migrate containers: Passcode to Typescript
* minor tweak
* minor tweak
* [FIX] "Sent an attachment" text on media preview for threads (#3947)
* update: `Content` component
* update: `Message` snapshots
* [FIX] Audio thumb's size (#3945)
* update: Audio component
* Chore: Update codecov version (#3954)
* Chore: Evaluate HeaderButton - TypeScript (#3925)
* update: `HeaderButton` components
* update: types
* fix types
* fix lint and update snapshot
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
* [FIX] Navigate to team from directory (#3953)
* [FIX] Param privacy when editing room info (#3962)
* [FIX] Drawer failing to open/close on ProfileView (#3963)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Danish Ahmed Mirza <77742477+try-catch-stack@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Snyk bot <snyk-bot@snyk.io>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Christian King <cking@vonix.io>
2022-03-28 18:14:26 +00:00
|
|
|
export interface IKeyCommandEvent extends NativeSyntheticEvent<typeof KeyCommand> {
|
|
|
|
input: number & string;
|
2022-02-28 18:00:47 +00:00
|
|
|
modifierFlags: string | number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const commandHandle = (event: IKeyCommandEvent, key: string | string[], flags: string[] = []): boolean => {
|
2019-12-11 23:01:12 +00:00
|
|
|
const { input, modifierFlags } = event;
|
|
|
|
let _flags = 0;
|
|
|
|
if (flags.includes('command') && flags.includes('alternate')) {
|
|
|
|
_flags = constants.keyModifierCommand | constants.keyModifierAlternate;
|
|
|
|
} else if (flags.includes('command')) {
|
|
|
|
_flags = constants.keyModifierCommand;
|
|
|
|
} else if (flags.includes('alternate')) {
|
|
|
|
_flags = constants.keyModifierAlternate;
|
|
|
|
}
|
|
|
|
return key.includes(input) && modifierFlags === _flags;
|
|
|
|
};
|
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandTyping = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_TYPING);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandSubmit = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_SEND_MESSAGE);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandShowUpload = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_UPLOAD, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandScroll = (event: IKeyCommandEvent): boolean =>
|
Merge 4.20.0 into master (#3412)
* [FIX] App not prompting join code for password protected channels (#2514)
* Adding joinCode parameter
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Insert join code input
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add joinCode field on db
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add label i18 pt-br and en-us
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add insert join code text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Fix atribute name
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
* Add join text
Signed-off-by: Vitor.Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
* Fix attributes joinCode, joinCodeRequired and pass attribute param in navigation
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Fixing attribute joinCodeRequired pass to goRoom
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Changed textinput style
Signed-off-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Delete not necessary attribute
Signed-off-by: Daniel Maike <danmke@hotmail.com>
* Fixing input style
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
* Undo unncessary changes
* use a join code modal
* tests: e2e tests to join protected channel
* fix: undo unnecessary change
* tests: cancel join code
* Remove some tests
* Minor fixes
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18n] Add Arabic (#2537)
* Arabic language setup
* Added arabic translation
* Arabic translation Proofreading
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing zh_TW and zh_CN strings (#2680)
* feat(i18n): add some missing strings and improve some translation
* fix: add missing server version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Add username on status messages (#2553)
* 1689 - missing user name for status messages
* 1689 - missing user name for status messages. Fixed broken e2e test "should pin message".
* Minor tweak
* Remove center style
* Small refactor on User
* Remove toLowerCase
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Filenames are incorrect in non-latin alphabets on upload (#2671)
* fix: filename on react-native-image-crop-picker
* fix: use rn-fetch-blob to upload files
* fix: FileUpload as a service
* fix: cancel upload on iOS
* fix: file upload from share extension
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Ease white labelling for Android (#2685)
* improve white labelling for Android
* Move application ID to gradle properties
* Fix CI
* Point foss sufix to main app
* Use npx on android-whitelabel script
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Chats order (#2688)
* Persist highest value on subscription.roomUpdatedAt
* Update tests
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [REGRESSION] Re-enable Jitsi Chat (#2687)
* Fix main jitsi
* Fix iOS
* Clear build.gradle cache
* Don't restore gradle
* cache is back
* Use master
* Point to react-native-jitsi-meet#master
* [CHORE] Build official apps on CI (#2701)
* Duplicated target and changed Bridging Header
* Display name
* Unnecessary dumb swift file removed
* Buildable name
* Reorder Info.plist
* Rename Official target's bundle id
* Ignore .mobileprovision
* Fix provisioning of official app
* Starting signing
* stash fastfile
* starting official ci iOS
* Uncomment Fastfile keychain
* Fix CI config
* allowProvisioningUpdates
* Changing AppIcon and Splash Screen
* Remove unnecessary folder inside of Images.xcassets
* Reorder notificationservice and shareextension plists
* Fix signing
* Manual signing style for official
* Split official signing
* Update project provisioning
* Use ENV as profile
* Output match
* Keys
* TestFlight refactor
* Setting up android
* android-official-play-build job
* Start removing unnecessary fastlane tasks on Android
* Trying to refactor Android jobs
* android-env
* Remove foss build for now
* Fork
* Fix if conditions
* Fix push
* ios-build command
* Rename Android builds
* Upload dSYMs
* Refactoring workflow
* Reorder upload-to-testflight
* upload-to-google-play-beta command
* Fix ci
* Fix android fork build
* Fix keystore
* Fix options on fastlane android
* Fix keystore
* Check isOfficial on iOS
* Check isOfficial on db
* Remove unused imports
* Database names on Android
* Tag fix
* Minor fixes
* Set IS_OFFICIAL on CI
* Fix detox
* follow review suggestions
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
* [i18n] Update fr (#2697)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [i18n] Update fr (#2705)
Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Empty space on Messagebox (#2704)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Yarn android scripts (#2716)
* [CHORE] Rename Experimental iOS lane (#2717)
* Move build_fork to the end
* Rename release to build_experimental
* [IMPROVEMENT] Use class variable instead of state for List's animated (#2718)
* [FIX] Bottom sheet being hidden sometimes (#2722)
* [IMPROVEMENT] Match background and text mention colors (#2723)
* [FIX] App freezing if Markdown preview contains sequential empty spaces (#2726)
* Remove sequential empty spaces from Markdown preview
* Use Markdown preview on RepliedThread
* [FIX] Official app without sharedUserId (#2734)
* [CHORE] Update React Native to 0.63.4 (#2737)
* Bump version to 4.13.1 (#2739)
* [REGRESSION] Multiple uploads not working on iOS (#2738)
* Update React Native to 0.63.4
* Fix multiple uploads not working on iOS
* [FIX] Unable to save attachment on iOS (#2743)
* Fix rn-fetch-blob's document dir without forward slash
* Update camera roll
* [FIX] Generate Jitsi access token when making a call (#2694)
fixes: #2693
# Please enter the commit message for your changes. Lines starting
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Channels list not following the same sorting logic from web client (#2763)
* [FIX] Pods lost on Official target (#2764)
* [FIX] RoomItem using deprecated animated event signature (#2771)
* [FIX] Server autocomplete text breaking line (#2774)
* [FIX] ServerDropdown flashing bigger server icon (#2775)
* [FIX] ServerDropdown flashing bigger server icon
* Remove unused logo and update image path where needed
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rooms list not being updated on some cases (#2765)
* Request subscriptions on RoomsListView.constructor
* Removes opened rooms from last message persisting
* Change server reducer
* Prevent undefined ids causing query error
* [FIX] Share Extension hitting memory limit on iOS (#2788)
* [FIX] Disallow swipe to dismiss on share extension
* Limit query to 20 and clean up props
* Remove rn-extension-share branch pointer
* Test new branch
* Remove branch
* [IMPROVEMENT] Threads layout tweaks (#2686)
* improvement: Thread Details
* fix: re-render Thread Messages Item
* fix: update snapshots
* improve: thread details component
* fix: cast replies length
* improvement: format date of threads
* improvement: thread details styles
* fix: wrap text
* tests: update snapshot
* improvement: use same date format for all dates
* Icon size 24
* Remove date
* Remove prop drill
* Badge position
* Badge container tweak
* Fix inline style
* Move ThreadDetails to containers
* Update stories
* Fix lint
* Remove wrong prop
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove some migrations (#2792)
* Remove force rooms refresh
* Remove MMKV migration
* Bump version to 4.14.0 (#2797)
* [FIX] Messagebox tracking lost on pop gesture navigation (#2799)
* Use setTimeout instead of InteractionManager
* Update tracking lib
* [FIX] Back button closing activity when on root stack screen (#2804)
* Make hardware back button to behave as home button on root screens
* Remove unnecessary code
* Remove handleBackPress from OnboardingView
* Fix lint
* [i18n] Add missing German strings (#2715)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Encrypted Discussions (#2813)
* I18n key fix
* Add encrypted switch
* Remove unused i18n keys
* Add enabled to encryption reducer
* Show encrypted option on CreateDiscussionView only when e2e encryption is properly set
* Add localSearch and use it on search
* Use encrypted from parent channel
* Fix method calls as rest api with 2fa enabled
* Fix logout after reset keys
* Use encryption reducer instead of lib directly to check render
* Check for room type logic to display encryption option on create discussion
* Check toggle-room-e2e-encryption permission on RoomActionsView
* Check for encryption status instead of setting on server
* Fix
* Disable switch instead of hide it
* Fix spotlight for DMs
* Fix server test
* [FIX] Messagebox missing style for text color (#2786)
* Changing auxilaryTintColor
* Changed Placeholder color to BodyText color
* added color prop
* eslint changes
* used array for styles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Update arabic (#2696)
* Update ar.js
* Update ar.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Workspace input without i18n (#2689)
* [FIX] Translation of strings in Login page
* Strings are added for translation.
fixes: #2620
* Add pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Spotlight returning duplicated entries (#2805)
* Update rocketchat.js
* Updated search function
* Minor improvements
* Remove atIndex
* Add remove logic to remove duplicate data from response
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor ServerItem (#2778)
* Updated ServerDropdown and ServerItem
* Added ServerItem stories
* Update ServerDropdown.js
* Updated ServerItem stories
* Updated ServerItem stories and ServerItem component
* Updated SelectServerView, ServerItem and ServerItem stories
* Updated ServerItem stories
* Updated ServerItem stories
* Update tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [DOCS] Updated Quick Start docs link in e2e/readme (#2802)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add Turkish (#2793)
* Turkish language support added
* Update tr.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Lint on #2793 (#2818)
* [I18N] Add missing german strings (#2689) (#2820)
* [I18N] Add missing italian strings (#2817)
* [FIX] Server version becoming null on server change (#2821)
* [FIX] Wrong styling on E2E encryption banner (#2767)
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner
* [FIX] Wrong styling on E2E encryption banner (#2767)
* Updated SortDropdown, ListHeader, ListItem and added stories for List.Item
* Updated SortDropdown
* Removed unused component
* Updated List.Item and stories
* Reverted unnecessary changes and updated ListItem stories
* Fix minor indentation
* Stop breaking Touch's default underlay color
* Fix indentation
* Remove falsy comparison from render
* Fix left icon
* Use List.Item on OmnichannelStatus
* Add missing separator
* Lint
* Fix sort dropdown
* Remove unnecessary styles
* Fix detox
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App Store using Experimental's app id (#2826)
* [FIX] Wrong username on push notifications (#2825)
* [FIX] Share extension memory issues on iOS (#2845)
* Remove unnecessary class prop
* Stop rendering servers when there's only one
* Map and alloc only necessary columns from query
* Fetch servers count instead of all servers records
* Fetch only needed servers
* Separators
* Remove renderContent
* Minor fix
* Refactor query
* Smaller avatars in memory
* Fix getItemLayout
* Add topic
* Load less pods
* tests
* Import only used functions from lodash
* Fix pods
* Import only used functions from semver
* Fix media sharing
* Update pods
* Disables preview and thumb on iOS
* Update expo-video-thumbnail
* Unnecessary change
* [FIX] Logout from other locations not prompting confirmation option (#2854)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.14.1 (#2859)
* [IMPROVEMENT] Check for focused rooms on in-app notifications (#2857)
* Update InAppNotification and room reducer
* Update InAppNotification
This reverts commit 60330a1e04cfe8d2e5aa311f367083d831682c49.
* Stop subscribing to threads
* Remove ref
* Fix prop-types
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Real name being ignored in SearchMessagesView (#2838)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove unnecessary share reducer calls (#2861)
* Remove unnecesary share reducer calls
* Update Avatar
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Breadcrumbs exceeding characters limit (#2862)
* [FIX] breadcrumbs exceeding
* fix.breadcrumbs-exceeding-change-events
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App compressing videos on iOS (#2915)
* Update index.js
* Update index.js
* [FIX] Real name setting ignored on reply preview (#2908)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reply component sending unused prop to Description (#2900)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] BackdropOpacity based on themes (#2863)
* Added backdropOpacity based on theme
* Updated ActionSheet, ReactionsModal, ReactionPicker and Sidebar
* Updated MultiSelect
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Webview not falling back to default auth challenge when no cert is provided (#2918)
* [FIX] Android - fallback to default auth challenge handling when no cert is provided
* If a certificate auth challenge is requested on Android the webview will hang if no certificate is loaded.
To prevent this, fallback to default Android behavior and cancel the challenge with request.cancel()
* No client certificate case defaults to super implementation
* Update react-native-webview
* Downgrade to previous dependency version
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
* [FIX] Support Jitsi_URL_Room_Hash (#2905)
* [FIX] Temp attachment files not being flushed after saved to gallery (#2871)
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
* Update AttachmentView.js
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Update iOS profiles for Experimental app (#2933)
* [IMPROVE] Deleted thread reply redirects to thread (#2840)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Thread showing typing indicator from main room (#2869)
* [FIX] Remove typing indicator from thread's header
* remove unnecessary props and change usersTyping condition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room
* Undo changes
* Check if current typing is from focused room before dispatching to redux
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't copy or edit media's description (#2885)
* [FIX] Image descriptions issues
* shorten the condition string
* fix selectedMessage state
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] RightButtonsContainer re-render check not returning default value (#2899)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Remove InteractionManager blocks (#2906)
* [FIX] Remove InteractionManager blocks
* Minor fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not sending second argument for EventEmitter.removeListener on some places (#2909)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] System message of e2e encryption is missing (#2888)
* [FIX] System message of e2e encryption missing
* add new encryption string
* add to stories
* Add pt-BR
* Move stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add permissions to Redux (#2914)
* [FIX] Add permissions to Redux store
* add only permissions being used in the app
* add clear permissions reducer
* call RocketChat.hasPermission from reducer
* add server version comparison on getPermissions
* refactor hasPermission function
* refactor hasPermission function
* remove uncomment code
* use Q.experimentalSortBy()
* add coerce function
* Change Rocketchat.hasPermission
* Apply on isReadOnly
* Apply to RoomInfoEditView
* Apply to RoomInfoView and RoomInfoEditView
* canAutoTranslate
* Unnecessary clear permissions
* Revert getUpdatedSince
* Naming fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add hold step for ios and android build experimental (#2943)
* [CHORE] Add hold step for ios-build-experimental and android-build-experimental
* Android hold step
* add ios hold step
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual
* Update ReplyPreview.js
* Remove react-fast-compare
* Removed deep-equal and upgrade babel-eslint dev dependency
* Fix avatar
* Fix Messagebox
* Fix CreateDiscussionView
* ModalBlockView
* NewMessageView
* ProfileView
* RoomInfoEditView
* ServerDropdown
* Return local search as object instead of observable
* SelectedUsersView
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [I18N] Add missing Russian strings (#2946)
* [i18n] Add missing Russian strings
* Couple fixes
* Fix Direct_message
Translate Direct_message as already has been translated
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Use List.Separator in all places (#2931)
* [FIX] Use List.Separator in all places
* add List.Separator
* change List.Separator
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Limit new message list query size to 50 (#2947)
* Limit query to 50
* Remove observable
* [FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Update mergeSubscriptionsRooms.js
* Minor refactor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactions modal's backdrop color too light (#2949)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.15.0 (#2950)
* [FIX] Share extension not working correctly on Official app (#2963)
* [FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary
* Use JS SDK branch
* Stop reconnecting if it's already connected
* Fix RoomsListView forever loading after tapping push notification of another server
* Execute fewer operations on app/index
* Remove roomsRequest call from onForeground
* Apply check and reopen
* Stop opening in-app notification when the app is on backgorund
* Connecting tweaks
* Fix deep linking not working if the app is on background
* Force reset yarn cache
* Upgrade JS SDK
* Remove listener on unmount
* Fix resume on Android after back button is pressed
* Fix local authentication resume
* Fix back button android
* Change JS SDK branch
* [FIX] Messagebox's placeholder color is too bright (#2968)
* [IMPROVEMENT] Message attachment colors (#2860)
* Added convertStrToHex function and updated Reply component
* Removed convertStrtToHex function and added attachmentBackground
* Added color2k, removed transparent view and applied transparentize to backgroundColor
* Added stories
* Update Reply stories
* Update Reply stories
* Fix lint
* Update Reply stories
* Fix props
* Move tests to Message stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace
* Added e2e tests
* Update login.js
* Update logout.js
* Reverted changes on login and share, updated init
* Update 08-persistantworkspace.spec.js
* Revert unnecessary changes
* Revert line change
* Update share.js
* Tweak tests
* Use wm shorthand
* Remove irrelevant calls to RocketChat.TOKEN_KEY
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to draft message (#2960)
* [E2E TEST] Draft message
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to group DM (#2961)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to directory (#2964)
* [E2E TEST] Directory
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed
* Added lte and gte functions and updated imports
* Updated functions names
* Update util functions
* Update util function and added methods
* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms
* Fix comparison
* Update getPermissions.js
* Remove unused import
* Fix lint
* Fix lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to discussions (#2970)
* [E2E TEST] Discussions
* fix error Cannot find UI elemen
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Attachment not rendering markdown (#2924)
* [FIX] Render markdown in Fields content
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add e2e tests for mark message as unread (#2953)
* [E2E TEST] Add e2e tests for mark message as unread
* fixed test for draft message
* change test name
* move test to other file
* Remove unnecessary tests
* Rename file
* Update jest tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Add E2E tests to delete server (#2954)
* [E2E TEST] Delete server
* fixed test for delete server
* fix tests
* minor changes
* Rename file
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Refactor RoomActionsView permissions (#2872)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js
* Updated loginTOTP
* Added validation
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Update rocketchat.js
* Fix resolve
* Remove incognito
* Fix totp being requested on webview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] User status icons (#2991)
* Add status and teams
* Update icons, icon size and getUsersPresence
* Minor changes
* Refactor RoomTypeIcon
* Minor tweaks
* Update unit tests
* Minor fixes
* Fix styles
* Small refactor
* Update jest
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [REGRESSION] Auth via deep linking not working (#3015)
* Update rocketchat and add e2e test for deep linking
* Update rocketchat and add e2e test for deep linking
* Update deeplinking e2e
* fix deep linking auth
* Test deep linking auth
* Fix deeplink to rid and add tests
* Small refactor
* Add non existing server test
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Create discussion request being sent with null value on encryption param (#3033)
* [CHORE] Use JSON files for i18n (#3011)
* [IMPROVEMENT] Load only i18n files needed (#3014)
* Use json
* Load only i18n files needed
* [REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache
* Write e2e tests
* Fix lint
* Fix isRTL
* [FIX] Custom OAuth and iframe login attempts being called multiple times (#3020)
* [FIX] App crashing when attachment color is an invalid HEX (#3021)
* [IMPROVEMENT] Add "Message" option to Room Info (#3029)
* [CHORE] Go to room from hashtag
* Layout tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Can't change status (#3018)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Search input not using the whole header space (#3012)
* [FIX] Search input not using the whole space
* Fix on getHeaderTitlePosition
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2EE password hiding automatically (#2972)
* [FIX] E2EE password hiding automatically
* add e2e test
* fixed hiding banner
* move e2e tests to 01-e2eencryption
* remove console.log
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TESTS] Move threads tests to its own file (#2965)
* [E2E TEST] Move threads test to another file
* changed descirbe title
* Rearrange files
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Regex typo on markdown (#2928)
* [FIX] Fix Regex Typo
* Add story for testing
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Make attachment validation compatible with web client (#2927)
* [FIX] Make attachment validation compatible with web client
* Added stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Non-reply attachments displaying time (#2902)
* Remove time if no message_link
* Fix message stories for replies
* Final stories fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] i18n not being applied on login/register labels (#2930)
* Use I18n translate in login text input label
* Add to register and add missing strings
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Revert "[FIX] Make attachment validation compatible with web client (#2927)" (#3036)
This reverts commit d6200745c028dd47b4ce0f11eb396c8f2a4cf807.
* Bump version to 4.16.0 (#3037)
* [NEW] Basic support to Teams (#3016)
* Database migration
* RoomItem icon
* Team icons
* Teams group
* Small tweak on RoomTypeIcon
* RoomView Header
* Add team's channels to RoomView header
* Starting TeamChannelsView
* Icon size
* o data found
* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView
* Use teams.ListRooms endpoint, render rooms list, remove unused functions
* Show team main on TeamChannelsView
* Disable swipe
* Pagination working
* Fix blinking no data found
* Search working
* Refactor to use BackgroundContainer while loading
* Go to room
* Cleanup
* Go to actions
* Events
* Lint
* Add debounce to go room
* Fix for tablet
* i18n
* Small fix
* Minor refactor
* Use local data when it exists
* Show last message
* Force teams migration
* Add stories to BackgroundContainer
* Remove unused component
* Move RoomViewHeader into containers folder
* Refactoring
* Testing RoomHeader
* i18n
* Fix server endpoint version
* Fix events
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions
This PR focuses on improving command, emoji, channel and user mentions.
* [Tests] Added e2e tests for mention improvement
* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /
* Return data on search for empty text
* Minor fixes
* Update e2e tests
* Minor fix
* [FIX] allow command mentioning in between text
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Status text not being updated on sidebar (#3041)
* Update StatusView.js
* Minor tweak
* Minor tweaks
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unable to search non-latin alphabet names on members list (#3039)
* Add search by name in members list
* Update RoomMembersView search
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Search stops working after some time (#3044)
* Bump version to 4.17.0 (#3058)
* [CHORE] Add job to upload Experimental to Google Play production (#3050)
* [REGRESSION] SAML stopped working after #2978 (#3060)
* [REGRESSION] Room actions not loading on tablet (#3061)
* Bump version to 4.16.1 (#3063)
* [REGRESSION] Fallback language stopped working (#3072)
* [CHORE] Update Detox to 18.10.0 (#3052)
* Updated detox and 5 tests
* Update e2e cases for Detox v18, update setUserStatus and added SET_STATUS_FAIL
* Downgrade mocha
* Exclude arm64 from building and update tests cases
* Update more tests cases, add registeringUser4
* Update more test files and add room-actions-scrollview testID
* Update package.json
* Remove unused username from test file and update 08-roominfo test file
* Fixing
* Mark as unread
* Fixing flaky tests
* Minor fixes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Message author touchable taking whole space available (#3048)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [CHORE] Improve stories (#3028)
* [CHORE] Improve stories
* Refactor Avatar and UIKitModal
* fixed undefined 'name'
* Remove commented stories
* Remove Markdown from stories/index, update Markdown test file and remove markdown stories from Message stories
* Remove StoriesSeparator
* Refactor Markdown
* Remove commented lines of code
* Small refactor
* Re-add stories
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Bump version to 4.17.0 (#3083)
* [REGRESSION] Fallback not working when device's language is available (#3091)
* Always add 'en' i18n
* Add tests
* Bump version to 4.16.2 (#3092)
* [FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3139)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
* [NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Tests not working because of ES6 import (#3147)
* Update ITeam.js
* Minor tweak
* [NEW] Leave Teams (#3116)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Lint
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Jump to message (#3099)
* Scrolling
* Add loadMore button at the end of loadMessagesForRoom
* Delete dummy item on tap
* Only insert loadMore dummy if there's more data
* load surrounding messages
* fixes and load next
* First dummy and dummy-next
* Save load next messages
* Check if message exists before fetching surroundings
* Refactoring List
* Jumping to message :)
* Showing blocking loader while scrolling/fetching message
* Check if message exists on local db before inserting dummy
* Delete dummies automatically when the message sent to updateMessages again
* Minor cleanup
* Fix scroll
* Highlight message
* Jump to bottom
* Load more on scroll
* Adding stories to LoadMore
* Refactoring
* Add loading indicator to LoadMore
* Small refactor
* Add LoadMore to threads
* getMoreMessages
* chat.getThreadMessages -> getThreadMessages
* Start jumping to threads
* Add jumpToMessageId on RoomView
* Nav to correct channel
* Fix PK issue on thread_messages
* Disable jump to thread from another room
* Fix nav to thread params
* Add navToRoom
* Refactor styles
* Test notch
* Fix Android border
* Fix thread message on title
* Fix NavBottomFAB on threads
* Minor cleanup
* Workaround for readThreads being called too often
* Lint
* Update tests
* Jump from search
* Go to threads from search
* Remove getItemLayout and rely on viewable items
* Fix load older
* stash working
* Fix infinite loading
* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable
* Add generateLoadMoreId util
* Minor cleanup
* Jump to message from notification/deep linking
* Add getMessageInfo
* Nav to threads from other rooms
* getThreadName
* Unnecessary logic
* getRoomInfo
* Colocate getMessageInfo closer to RoomView
* Minor cleanup
* Remove search from RoomActionsView
* Minor fix for search on not joined public channels
* Jump to any link
* Fix tablets
* Jump to message from MessagesView and other bug fixes
* Fix issue on Urls
* Adds race condition to cancel jump to message if it's stuck or after 5 seconds
* Jump from message search quote
* lint
* Stop onPress
* Small refactor on load methods
* Minor fixes for loadThreadMessages
* Minor typo
* LoadMore i18n
* Minor cleanup
* [FIX] Method calls not sending date params as EJSON (#3159)
* [FIX] Read receipt not displaying full date (#3133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Remove member from team (#3117)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Added confirmationAlert for missing permissions case
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add Existing Channel screen showing discussions and channels without permission (#3151)
* [Fix] the filter to show the existing channel
* [Refactor] the function that filter to isolate it
* Refactor how to wsearch properly
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Member search not trimming search text (#3129)
* Fixed logout toast bug for the iOS
* Removing callToAction and replacing with confirmationText
* Handling member search with spaces to the left and right of name/username
* Changing location of string trimmer
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room
* E2E - Update previous roomView count after send msg in discussion
* Not needed rn
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Team creation not raising error if something unexpected happens (#3152)
* [IMPROVEMENT] Add error to AddExistingChannel
* Fix the alert error when create a channel
* Fix the error alert box when create channel and teams
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check permissions on team channels action sheet (#3155)
* [IMPROVEMENT] Show only the option that user can manage in TeamChannelsView
* Refactor the showActionSheet function
* Added remove team channel permission
* Cleanup
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Add channels to team's flow using different navigators (#3157)
* [FIX] the navigation to AddChannelTeamView and next screens
* Fix the order inside the NewMessageStackNavigator
* Delete spaces after arrow function in onPress
* Adjusted InsideStackNavigator to a conditional animation
* Fixed route for iPad
* Small change
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Allow discussions to be edited (#3137)
* Refactored the filter to work the edit for channel and discussion
* Removed the filter which type of room can be edit
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Delete Teams (#3123)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Minor tweaks
* Typo
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Android navigation bar color when Loading modal appears (#3165)
* [FIX] Modal appearance
* Undo and only add android:navigationBarColor
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Check for old servers for Teams (#3171)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Convert/Move Channel to Team (#3164)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView
* Fix icon
* Minor tweaks
* add tests
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Add logEvents for Teams (#3182)
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Disable jitsi call for teams (#3183)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show alert `Not allowed` when click on a private channel that you don't be invited before (#3177)
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] Load team's rooms from local database on team leave (#3185)
* [IMPROVEMENT] Search team list rooms of user in watermelon db
* Minor nitpick
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Option to prevent users from using Invisible status (#3186)
* [FIX] Option to prevent users from using Invisible status
* Added error to pt-BR
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Item not animating on tap on team's channels view (#3187)
* [FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team leave (#3161)
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3192)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [NEW] Support Google OAuth from external browser (#3134)
* Deep linking to the app
* Handle deep linking
* Bump version to 4.17.0 (#3093)
* Revert "[IMPROVEMENT] Load team's rooms from local database on team leave (#3185)" (#3194)
This reverts commit fa00ef92efa45fef3938afbb92be52b97cb16358.
* [FIX] Teams tests (#3196)
* Make team_main not optional and fix tests
* Undo isOptional and fix query
* Comment
* [FIX] Wrong system messages being passed as parameters to room save (#3197)
* [FIX] RoomItem's long press crashing the app if prop is missing (#3199)
* Check onLongPress prop
* Add Touch stories
* [FIX] Crashing on link press (#3204)
* [FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] Fixed E2E tests (#3201)
* [FIX] Test E2E i18n
* 01-createroom and 02-room fixed
* 03-roomactions and 04-discussions
* 05-threads and 07-markasunread from room
* Test 07-markasunread
* Set notifications 'YES' and delete true in 03-forgotpassword and 04-createuser
* Fixed the data that 02-team uses and changed the message in 07-markasunread
* Added group.alternate to data.docker and commented the test for the fallback language
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [TEST] E2E for Jump to Message (#3202)
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions
* add redux action for update
* Minor tweaks
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Subscribe to roles (#2992)
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [IMPROVE] Subscribe to settings (#3222)
* Add action and reducer
* Add streamNotifyAll listener
* Minor tweak
* Minor tweak
* Fix update not taking in consideration other type columnns
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Add Lint to E2E tests (#3217)
* Added eslint plugin dependencie and fixed the eslint.js
* E2E Tests folder Assorted
* Linted all e2e, just e2e/docker that don't changed
* Update 09-jumptomessage.spec.js
* Removed async from describe function
* Remove outdated detox linter lib
* Add overrides to eslintrc
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] App not showing proper alert on team delete (#3219)
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to Teams (#3223)
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message from in-app notification (#3225)
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout
* Add loginEmailPassword to loginOAuthOrSso
* Add isFromWebView field
* Fix migrations
* Minor tweak
* Fix OAuth for other services
* Fix migrations
* Stop persisting loginEmailPassword
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3251)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Message body readability on dark themes (#2981)
* [CHORE] Apply auxiliaryText on message body
* change bodyText to uxiliaryText
* Update tests
* Update bodyText color and rollback PR changes
* Update Storyshots.test.js.snap
* Minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* [FIX] Subscribe to settings making app to hang on login (#3254)
* [FIX] Poor performance in messages list on Android 11 (#3260)
* Bump version to 4.18.0 (#3252)
* [FIX] Create team crashing the app (#3248)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Convert Team to Channel (#3249)
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Set black as default dark theme (#3270)
* Update default darkLevel
* Minor tweak
* [IMPROVE] Make `system default` the default browser (#3265)
* [FIX] use systemdefault: as the default browser, not inApp
* Fix
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3269)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Remove difference between public/private on "Group by type" (#3271)
* Merge channels and private groups
* Remove i18n
* Regression: Settings pagination not working (#3277)
* Regression: Markdown handlePress not working properly (#3278)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Improve QA workflow (#3285)
* Chore: Update dependencies (#3206)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* Update android image to api 29 and xcode to 12.4
* building
* Fix lint
* Get rid of Storybooks errors
* Patch react-native-simple-crypto
* Remove pods from git
* Stash simple crypto
* Stash Flipper
* Remove single crypto patch
* Add manage-pods command
* Update Xcode to 12.5.0
* Fix E2E tests
* Cleanup podfile
* Fix Storybook
* Remove RN patch
* Fix iOS build release
* Fix cocoapods cache on CI
* Try to fix pods using bundle
* Update gems
* Add app_store_connect_api_key env to CI
* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64
* Rollback to older usage of app_store_connect_api_key
* tmp
* Run manage-pods on TestFlight
* Use Podfile instead of Podfile.lock for cache
* Increase no_output_timeout from 20 minutes to 40
* Restore node modules on upload-to-testflight
* Add pod install to docs
* Chore: Run lint and tests on staged files only (#3291)
* Bump version to 4.19.0 (#3307)
* Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native
* Really remove bugsnag from android
* Install @bugsnag/react-native
* Logging error on Android correctly
* Cleanup
* Fix bugsnag mock
* iOS builds
* Fix CI mistake
* Upload dSYMs to Bugsnag
* Upload source maps automatically on iOS
* Cleanup
* Enable Bugsnag on share extension
* Add test error
* Use large macos
* Bump to 4.19.0 temporarily to test on TestFlight official
* Use temp keys
* Fix upload source maps for Official iOS build
* Remove tests
* Set version back to 4.18.0
* Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error
* Title in alert
* Disable button when the user donesn't have the role permission
* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash
* Check if the error eis translated before parse through i18n
* Remove unnecessary code
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading
* Added animation to backdrop opacity
* Minor tweak
* Fix internal image impacted by opacity
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
* [FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension
* Cleanup
* [FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat
* Added the permission to edit livechat room custom fields
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat
* [FIX] Custom fields labels and values
* refactor field
* Added the permission to edit livechat room custom fields
* Fix the inputs.focus()
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat
* [FIX] Tags with multiselect and tagParamsSelected
* Removed console.log and the new set to filter
* Added the permission to edit livechat room custom fields
* Change Title Livechat_edit to Edit
* Added marginBottom to multiSelect
* Added marginBottom to multiSelect
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both
* Removed console.log
* minor tweak
* Enable and disable crashlytics and remove breadcrumb from bugsnag
* minor tweaks with the names of the variables
* minor tweak
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view
fixes: #2853
* Add stories for thumbnails and update test
* [Test] Update tests
* added stories
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list
fixes: #2684
* Changed the Button and theme, text theme and how to call the function
* Fix the props passed in Message
* Function to context
* Added button attachment to stories
* New snapshot
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages
* Minor tweak
* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined
* Added some team errors in i18n
* Added unauthorized to i18n
* Test if there is channel name too, to prevent to show {missing roomName}
* Refactor the treatment error to check if exists before translate with i18n
* Remove some check conditional points
* Minor tweak
* Added array with error inside the createChannel
* Moved error array to inside the handleFailure
* added creating_discussion
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java
* Update MainApplication.java
* Downgrade react-native-orientation-locker
* Pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] TextInput breaking line (#2873)
* Update TextInput's padding
* Chante textAlign to auto and to ellipses longer text than the width
* Added story with changes in text input
* Changed in TextInput stories
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps
* Update react-native-jitsi-meet
* Working on iOS from Jitsi source
* Dependencies installed
* Temp android
* Kinda working android
* Working on iOS with our SDK
* Use our maven repo
* Fix temp maven url
* Cleanup
* Fix maven url
* Bring chat back
* Add activity indicator
* Update react-native-jitsi-meet
* Fix loading on iOS
* Clear gradle cache
* Try 3.6.0
* Dummy change to update gradle cache
* Point to merged forks
* update pod commit
* Bump version to 4.20.0 (#3366)
* Chore: Start Typescript migration (#3279)
* [IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
* [FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: lint-staged not working properly(#3382)
* Chore: Remove CocoaPods folder (#3381)
* Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript
* TODO -> TODO:
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub
Easy language translations with LingoHub 🚀
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
* [NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Preserve voice message if recording is interrupted (#3397)
* https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/3388/commits/7c259096713a73e4e39467b45298222ca16a9d5e
* Minor changes
Co-authored-by: Marco Jakobs <mj@jacotec.de>
* [IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Chore: Point to new white label URL (#3402)
* [FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet
* removed refreshControl
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Fetch members on RoomMembersView (#3403)
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Daniel Maike <danmke@hotmail.com>
Co-authored-by: Vitor Leal <vitor_leal2201@hotmail.com>
Co-authored-by: Fernando Aguilar <fernando.aguilar@hotmail.com.br>
Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: youssef-md <emaildeyoussefmuhamad@gmail.com>
Co-authored-by: Abdullah Alhamoud <10301923+abalhamoud@users.noreply.github.com>
Co-authored-by: David-Tsui <st880221@gmail.com>
Co-authored-by: Dave Koo <dkoo761@gmail.com>
Co-authored-by: Graham Smith <graham@wiseman-designs.com>
Co-authored-by: Fazil Boudjelal <fazildiablou@hotmail.fr>
Co-authored-by: Lucas Dousse <Cormoran96@users.noreply.github.com>
Co-authored-by: Sumukha Hegde <SUMUKHA214@GMAIL.COM>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: phriedrich <info@phriedrich.de>
Co-authored-by: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com>
Co-authored-by: Hakan YILMAZ <mukerrem.yilmaz@hotmail.com>
Co-authored-by: Vincenzo Esposito <aenon.esposito@gmail.com>
Co-authored-by: Arkadyuti Bandyopadhyay <bandyopadhyayarkadyuti@gmail.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gung Wah <41157464+kresnaputra@users.noreply.github.com>
Co-authored-by: Billy Newman <newmanw10@gmail.com>
Co-authored-by: Jan Garaj <jan.garaj@gmail.com>
Co-authored-by: ankar84 <ankar84@gmail.com>
Co-authored-by: sadegh <sadeghmohamadnia@yahoo.com>
Co-authored-by: Noach Magedman <nmagedman@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
Co-authored-by: Diego Sampaio <chinello@gmail.com>
Co-authored-by: Chris Price <56982873+cprice-kgi@users.noreply.github.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2021-10-01 18:12:09 +00:00
|
|
|
commandHandle(event, [constants.keyInputUpArrow, constants.keyInputDownArrow], ['alternate']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandRoomActions = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_ROOM_ACTIONS, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandSearchMessages = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_SEARCH, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandReplyLatest = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_REPLY, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandSelectServer = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_SELECT, ['command', 'alternate']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandShowPreferences = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_PREFERENCES, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandSearching = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_SEARCH, ['command', 'alternate']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandSelectRoom = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_SELECT, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandPreviousRoom = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_PREVIOUS_ROOM, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandNextRoom = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_NEXT_ROOM, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandShowNewMessage = (event: IKeyCommandEvent): boolean => commandHandle(event, KEY_NEW_ROOM, ['command']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandAddNewServer = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_ADD_SERVER, ['command', 'alternate']);
|
2019-12-11 23:01:12 +00:00
|
|
|
|
2022-02-28 18:00:47 +00:00
|
|
|
export const handleCommandOpenServerDropdown = (event: IKeyCommandEvent): boolean =>
|
|
|
|
commandHandle(event, KEY_SERVER_SELECTION, ['command', 'alternate']);
|