Commit Graph

2635 Commits

Author SHA1 Message Date
Gleidson Daniel Silva f78f6f33ff
fix: add fallback to unsupported MathML tags in MathJax (#5127)
* add react-native-katex

* use default message height
2023-08-16 09:02:53 -03:00
Gleidson Daniel Silva acbcac29c8
fix: fix bugs related to auto-translate and add tests (#5144)
* fix re-render on autoTranslateRoom sub update

* create autoTranslate tests

* create getMessageFromAttachment

* fix autoTranslate null value

* add translateLanguage to context

* fix type

* fix shouldComponentUpdate

* add autoTranslate and autoTranslateLanguage to subscription

* use getMessageFromAttachment instead att.description

* remove dequal

* add tryCatch

* 🙏
2023-08-14 17:22:46 -03:00
Reinaldo Neto 0c8b2f565e
regression: attachment view is changing the color of status bar (#5167) 2023-08-14 15:11:45 -03:00
Gleidson Daniel Silva b23df26d42
regression: show roles on user info view (#5154)
* create usersRoles reducer

* add usersRoles test

* fix usersRoles reducer

* fetchUsersRoles on login

* use new roles

* add test

* fix roles when the user has permission to see other user roles

* use role name

---------

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2023-08-11 17:35:24 -03:00
Gleidson Daniel Silva cbbea73374
feat: add new video conf block - Issue (#5150)
* improve build-icon-set script

* update mappedIcons with new icons, and orderBy name

* add new icons fonts

* add phone-issue icon

* create VideoConferenceIssue block

* verify error and return issue block
2023-08-09 16:15:10 -03:00
Gleidson Daniel Silva 7affa268fa
fix: reply from a push is sent to the correct destination (#5152)
* add tmid to msg json body

* add tmid to ios reply

* remove unused param
2023-08-09 15:18:50 -03:00
Reinaldo Neto c9f4ca1197
feat: add media auto-download (#5076)
* feat: media auto-download view

* media auto download view completed and saving the settings in mmkv

* audio download preference

* audio auto download when the user who sent the audio is the same logged on mobile

* creation of isAutoDownloadEnabled, evaluate hist hook, Image Full Size preload done

* minor tweak audio show play button after download

* refactor audioFile to handleMediaDownload and fixed the audio download

* desestructured params to download too

* image download and autoDownload, algo fix the formatAttachmentUrl to show the image from local

* add the possibility to cancel image download and clear local images

* refactor blur component

* video download and auto download, also keeped the behavior to download unsuportted videos to the gallery

* add the possibility to start downloading a video, then exit the room, back again to room and cancel the video previously downloading

* remove the custom hook for autoDownload

* remove blurcomponent, fix the blur style in image.tsx, minor tweak video function name

* send messageId to video

* introducing the reducer to keep the downloads in progress

* create a media download selector

* remove all the redux stuff and do the same as file upload

* video download behavior

* done for image and audio

* fix the try catch download media

* clean up

* image container uiKit

* fix lint

* change rn-fetch-blob to expo-filesystem

* add pt-br

* pass the correct message id when there is an attachment on reply

* refactor some changes requested

* fix audio and move the netInfo from autoDownloadPreference to redux

* variable isAutoDownloadEnable name and handleMediaDownload getExtension

* message/Image refactored, change the component to show the image from FastImage to Image

* refactor handleMediaDownload and deleteMedia

* minor tweak

* refactor audio

* refactor video

* fix the type on the messagesView(the view of files)

* minor tweak

* fix the name of searchMediaFIleAsync's result

* minor tweak, add the default behavior, add the OFF as label

* minor tweaks

* verify if the media auto download exists on settings view

* fix media auto download view layout and minor tweak wifi

* avoid auto download from reply

* minor tweak at comment

* tweak list.section

* change the name to netInfoState and Local_document_directory

* remove mediaType and refactor audio and image

* separate blurview

* thumbnail video and video behavior

* add Audio to i18n and minor tweak

* set the blur as always dark and add the possibility to overlay

* don't need to controle the filepath in the view

* fix the loading in image and video at begin

* save the file with a similar filename as expected

* removed the necessity of messageId or id

* minor tweak

* switch useLayoutEffect to useEffect

* avoid onpress do some edge case because of cached at video

* minor tweak

* tweak at audio comment extension

* minor tweak type userpreferences

* remove test id from mediaAutoDownloadView

* change action's name to SET_NET_INFO_STATE

* caching and deleting video's thumbnails

* remove generate thumbnail

* minor tweak in image

* update camera-roll and save the file from local url

* remove local_cache_directory and deleteThumbnail

* update blur to fix error on android

* fix blur is hiding the file description

* avoid download unsupported video

* return void when it is loading the audio
2023-08-07 11:02:30 -03:00
Reinaldo Neto 278ed91f9a
feat: forward message (#5110)
* feat: share message

* index, selectPersonOrChannel, types

* share a message using the chat.postMessage and refactor the interfaces

* minor tweak

* removed rid in from select person or channel

* change title

* add pt-br translation

* compareServerVersion GTE 6.2.0

* test for sharemessage

* view to masterDetail

* fix podfile

* change from forward message to share message

* change from share to forward

* refactor the forward message view, tweak on some styles and add the cleanUpMessage

* minor tweak

* refactor to add MessagePreview and use the same message/index

* fix e2e test

* add the capability to filter the subscsription if the room is read only or not

* minor tweak

* fix disable the send button and add message has been shared

* add try catch and toast or alert

* fix interface
2023-08-04 11:09:36 -03:00
Reinaldo Neto 77a81d577e
fix: selected items on a multiselect change when do a new search (#5145)
* fix: selected items on a multiselect change when do a new search

* fix livechateditview

* minor tweak at const

* update uikit storyshot and uikit handle the multiStaticSelect

* add e2e test

* minor tweak
2023-08-03 16:37:14 -03:00
Reinaldo Neto a203f67a4a
feat: add bio and nickname to profile view (#5060)
* feat: add bio and nickname to profile view

* add the text input in profileview

* fix the bio layout and add to translation

* fix e2e tests

* add max length to nickname and bio

* refactor a bit the inputRef

* fix the text align vertical of multiline
2023-08-01 14:34:05 -03:00
Reinaldo Neto 5c5ff2d51f
fix: app won't open archived channels (#5135)
* getSubscriptionByRoomId, then if null do the request

* add getRoomByTypeAndName

* minor tweak

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-08-01 11:45:56 -03:00
Reinaldo Neto 9ee26916b5
chore: conditional to setBackgroundColor only for Android (#5147) 2023-07-25 10:21:55 -03:00
Reinaldo Neto 15ec8c121d
fix: user notification preference state not reflecting the real state (#5138)
* fix: user notification preference state

* explicit that the preferences state is the previous one
2023-07-19 16:47:01 -03:00
Reinaldo Neto 456344029c
fix: Android status bar theme on the first open isn't working properly (#5132)
* fix: status bar color and text color update properly

* change how to set the status bar

* add colors
2023-07-18 18:01:31 -03:00
Gleidson Daniel Silva 192d5db179
fix: disable full screen video on iOS jitsi calls (#5117)
* add fix for ios

* remove true

* fix ios webview
2023-07-17 13:22:29 -03:00
Reinaldo Neto b420b51272
fix: handle the attachment when the value is null (#5130)
* fix: handle the attachment when the value is null

* filter properly before pass to map
2023-07-14 14:17:48 -03:00
Gleidson Daniel Silva 48acd0669e
fix: enable android 13 notifications (#5118)
* set target 33

* update cameraroll

* wip

* ask android push permission

* test
2023-07-12 15:28:25 -03:00
Reinaldo Neto a44951296d
chore: migrate AddExistingTeamView to hooks (#5042)
* chore: migrate AddExistingTeamView to hooks

* fix masterdetailstack lint

* fix inside stack

* minor tweak

* tweak empty space
2023-07-06 14:40:46 -03:00
Reinaldo Neto 0dbaff4f63
chore: migrate E2EEncryptionSecurityView to hooks (#5085)
* chore: migrate E2EEncryptionSecurityView to hooks

* minor tweak
2023-07-05 16:33:47 -03:00
Reinaldo Neto a76c5464cf
chore: migrate WorkspaceView to hooks (#5041)
* chore: migrate WorkspaceView to hooks

* minor tweak

* refactor registerDisabledComponent

* minor tweak

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-07-05 15:28:01 -03:00
Gleidson Daniel Silva 223550d88c
feat: Add caller and ringer to video conf calls (#5046)
* add expo camera and use camera on call init action sheet

* fix permissions

* set colors when calling

* update @react-native-community/hooks lib

* move to useWindowDimensions

* create action to handle video-conf calls

* create videoConf reducer

* add typed-redux-saga lib

* fix return

* change videoConf saga to TS

* fix TS target

* update action and types

* create actionSheetRef

* add notifyUser api

* export video conf types

* add action prop

* use new reducer prop

* add videoConferenceCancel and add allowRinging to videoConferenceStart

* temp-patch

* add locales

* add handler to videoconf message

* fix rest types

* add message types

* path to remove component from dom

* remove notification when is videoconf

* create sound hook

* create dots loader

* update call translation

* the end is near

* move to confirmed

* better code reading

* fix call type

* fix tests

* update podfile

* wip

* fix call order

* move colors

* move to jsx

* fix colors

* add pt-br

* remove patch and point

* fix colors

* fix expo camera

* move to style

* remove unused styles

* update types and style

* wip

* rename IncomingCallComponent

* add custom notification

* wip

* fix naming

* fix styles

* fix import

* fix styles

* change colors

* fixa ringing

* fix import

* organize

* fix sizes

* use realName

* fix spacing

* fix icon size

* fix header gap

* changeColor

* fix safeArea

* set calling only on direct calls

* change ringer to be a component

* cancel call on swipe

* remove join on direct calls

* add props

* update package
2023-07-03 21:03:39 -03:00
Gleidson Daniel Silva fea4f164d5
chore: migrate PickerView to hooks (#5002)
* migrate ForwardLivechatView to hooks and fix some types

* fix types

* fix types

* remove useless memo

* change to useDebounce

* fix types
2023-06-30 11:01:01 -03:00
Gleidson Daniel Silva d30d4645a5
chore: migrate AutoTranslateView to hooks (#4677)
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2023-06-29 19:01:34 -03:00
Gleidson Daniel Silva 47fbde566d
chore: migrate AttachmentView to hooks (#5003)
* migrate AttachmentView to hooks

* fix types

* fix types

* fix lint
2023-06-29 18:10:49 -03:00
lingohub[bot] 01577d9534
Language update from LingoHub 🤖 on 2023-06-27Z (#5123)
* Language update from LingoHub 🤖

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Diego Mello

Easy language translations with LingoHub 🚀

* Language update from LingoHub 🤖

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Diego Mello

Easy language translations with LingoHub 🚀

---------

Co-authored-by: Diego Mello <diego.mello@rocket.chat>
2023-06-27 15:27:36 -03:00
Reinaldo Neto d76d531985
chore: avoid use all seats availables on the server (#5049) 2023-06-27 09:57:52 -03:00
Reinaldo Neto 8bb5af25ef
fix: duplicated itens inside the UiKit's Select (#5107)
* fix: duplicated itens inside the UiKit's Select

* add useMemo
2023-06-26 23:24:43 -03:00
Diego Mello 51cf4e5cd9
chore: Remove unused i18n keys from en.json (#5056) 2023-06-26 16:28:11 -03:00
Gleidson Daniel Silva 059f81d84b
chore: add --passWithNoTests to lint-staged (#5120) 2023-06-23 16:39:49 -03:00
Reinaldo Neto 01fb407c54
fix: the i18n for room_archived and room_unarchived (#5106) 2023-06-20 21:58:20 -03:00
Diego Mello e9ee68ee53
Bump version to 4.40.0 (#5112) 2023-06-20 16:19:14 -03:00
Reinaldo Neto 557b4643fe
regression: fix blank 'Name' field in Profile View when modifying other fields (#5101) 2023-06-19 20:41:04 -03:00
Reinaldo Neto 4880c47e9b
fix: capability to dismiss the keyboard on drag for iOS on RoomsListView (#5094)
* fix: add the capability to dismiss the keyboard on drag for iOS

* minor tweak
2023-06-16 18:37:26 -03:00
Reinaldo Neto da1485ba56
feat: respect the room avatar external provider url setting (#5095)
* feat: respect the room avatar external provider url setting

* add storyshot

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-06-16 16:21:40 -03:00
Reinaldo Neto aabbc77479
fix: update room on the rooms list view after local search and quote showing with leading empty space on the rooms list view (#5064)
* fix: quote showing with leading empty space on the rooms list view

* add unit test for previewFormatText

* minor tweak

* add e2e test to see the msg quote

* fix room item re-render after local search

* markdown preview testID can be received or default

* update storyshot roomheader

* minor tweak

* minor tweak

* fix flaky test

* refactor searchRoom to avoid flaky tests
2023-06-16 15:20:04 -03:00
Reinaldo Neto 1ee2aa889b
fix: conversion of public channel into team (#5099) 2023-06-12 11:17:43 -03:00
Gleidson Daniel Silva a6eb514761
fix: Calls with jwt not working on ios and fix media permission on iOS (#5075)
* fix roomId

* fix ios permission

* update lib and patch

* try

* update webview

* update method

* fix ios

* move to a function
2023-06-06 18:53:48 -03:00
Gleidson Daniel Silva 7abd52a6e3
fix: Wrong user photo when opening the action sheet to start a call (#5033)
* fix wrong video conf user photo

* move hook outside
2023-06-05 16:37:50 -03:00
Reinaldo Neto 61fe9dbb1e
feat: case insensitive for non-ASCII text on main search (#3309)
* Added slug as dependecy and created a slugified String

* add the slug and slugifyLikeString

* using unsafeSql instead of the slug

* need to fix the like on the watermelon side and need the slug anyway

* watermelondb patch to change the like to use the upper or toUpperCase

* Updated config.yml

* Updated config.yml

* implemented the sanitized fname and fix the discussion icon at search

* add the search for non-latin alphabets

* fix the searchRoom function

* change the library of slug and added the unit tests

* optional sanitizedFname

* add some comment

* remove @types/slug

* remove watermelondb patch package

* latin test, tweak at comment and tweak e2e test

* minor tweak e2e

* change typeText to replaceText at searchRoom

* regexp to test the characters

* add typeText on searchRoom

* e2e search room replace and type

* to fix the replace text for iOS and type non-ASCII on Android

* minor tweak

* minor tweak

* enable artifact

* disable artifacts

* increase sleep time and change from toExist to toBeVisible

* fix android flaky test
2023-05-29 12:03:24 -03:00
Gleidson Daniel Silva 2d07b1682c
fix: Change useSnaps logic to be based on component size (#5032)
* change useSnaps logic to be based on component size

* fix logic

* fix iphone without notch
2023-05-19 14:40:31 -03:00
Diego Mello 0079229a34
chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
Diego Mello b684610887
chore: Bump version to 4.39.0 (#5071) 2023-05-12 13:51:19 -03:00
Diego Mello f23161417a
chore: Bump version to 4.38.0 (#5066) 2023-05-10 20:29:55 -03:00
Reinaldo Neto 2ead142a29
fix: the reaction's list scroll setting only one snappoint (#5039) 2023-05-10 20:27:34 -03:00
Reinaldo Neto 47b4413b59
fix: render the text from custom attachment as markdown (#5048)
* fix: render the text from custom attachment as markdown

* add special character, one number and one capital letter at password e2e

* minor tweak

---------

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2023-05-10 18:39:56 -03:00
Diego Mello c00ab98441
feat(Android): Remove Open workspace from onboarding (#5065)
* Remove Open

* Remove on Android only and comment tests out
2023-05-10 17:22:18 -03:00
Reinaldo Neto edea063cf6
fix: show user's full name when searching (#5043)
* fix: show user's full name when searching

* fix the fname and name

* minor tweak at e2e password

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-05-10 16:32:39 -03:00
Reinaldo Neto f4ff7c82af
fix: message re-rendering twice in a row (#5051) 2023-05-10 15:44:05 -03:00
Diego Mello 53ee79799a
fix(Android): Wrong icon on push reply fail (#5055) 2023-05-10 14:28:14 -03:00
Gleidson Daniel Silva fcc6f09875
feat: Remove Jitsi native module from iOS and use webview instead (#5061) 2023-05-08 10:45:46 -03:00