* create basic useEndpointData for call endpoints using hooks
* remove cache
* create base for useEndpointData test
* create basic useEndpointData for call endpoints using hooks
* remove cache
* create base for useEndpointData test
* fix preset
* update tests
* change order
* create ErrorResult and add error to return
* update tests
* [IMPROVE] Support for tag request close
* clean up
* refactor isObrigatory and value
* fix obligatory
* removed onSubmitEditing
* create closelivechatview
* Refactor Close Omnichannel from ActionSheet to a new Screen
* Fix navigation
* fix screen title
* back to before actionsheetwithinput
* added string in pt-br
* refactor canSubmit
* fix the method closeRoom
* comment of server's version
* some tweaks
* Update app/lib/services/restApi.ts
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
* chore: migrate TextInput from class to functional
* removing the theme props
* adding tests for the FormTextInput
* minor tweak
* applying changes requested
* changing the way we import/export the FormTextInput and TextInput
* removing left comments
* minor tweak
* fix import
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
* create livechat video conf feature
* add handler to call url
* remove webview and change to openUrl
* Checking settings
* stash
* add action sheet on click init and ad more handlers
* fix logic and call to create a video conf
* change JitsiMeetView from InsideStack to ChatStack to remove modal animation
* fix error logic
* fix stack
* fix comma
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* create iTotp enum
* migrate change user profile to method
* Fix minor i18n issues
* Use saveUserProfileMethod from Services
* Catch cancel event from TwoFactor modal
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* create new delete account button
Co-Authored-By: Danish Ahmed Mirza <danishmirza30602@gmail.com>
* change modal to action sheet
* better naming
* remove ? from translation
* update translations
* change to new figma layout
* fix export
* remove unused state
* add new text input to base input
* clean up
* update bottom sheet and create a mock
* remove unecessary bracket and fix type
* fix header
* migrate buttons to action sheet
* fix imports
* update yarn.lock
* add separator to styles
* add ternary verification
* minor tweaks: keyboard for landscape android tablet, interface IactionSheetProvider and remove navigation options to get ismasterdetail from redux, fix jest setup
* fix colors
* disconnect from sdk when delete the account
* update snapshot
Co-authored-by: Danish Ahmed Mirza <danishmirza30602@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
* Chore: Hooks - create custom hook usePermissions
* minor tweak
* Change usage of usePermissiosn on LivechatEditView
* Create getPermissionsSelector
* Simplify selector
* Simplify userRoles
* First render with permissions array length of false
* Move roles state closer to each other
* useSubscription (not working, but looking cool)
* at least it's working now
* working
* cleanup
* solve ts return
* Change it to useSubscriptionRoles only and check for diff on the state
* Remove IAppState
* Minor tweak to work properly useSubscriptionRoles
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Option to show mentions badge
* fix the local database and mergeSubscriptions, missing the state in notificationPrefView
* finished the hideMentions
* fix the string version
* Migrate containers/Avatar to hooks
* Migrate to `useSelector` hook and `useRef`
* Change user object prop to primitive type
* fix re-render and update snapshot
* fix lint
* update pods
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
* move statusview to your specific folder
* create showToast helper
* migrate StatusView to hooks
* fix type
* add peer deep to useEffect
* fix lint
* fix error message
* remove deviceToken from constructor
* remove old patch to verify if is running on shareExtension
* add share extension verification
* Remove imports from `/notifications/` just to test the share extension
* Revert "Remove imports from `/notifications/` just to test the share extension"
This reverts commit b3492abad413a5a8a6cf3cd027e33044c437c627.
* changes from constructor to a plain function
* update pods
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* move auth to handleLocalAuthentication function
* add support to close ScreenLockedView
* create useServer hook
* add check to verify if you have a password before entering the screen
* fix import
* [NEW] Implementing On-Hold Livechat for Omnichannel
* added onHold to database
* list header title open livechats
* update rooms list view
* remove placeOnHold after clicked
* fix mesasgebox reactive to on hold
* navigate to roomslistview
* minor tweaks
* for grouping too
* fix chat on-hold when the agent is fully
* show on hold system messages