Commit Graph

2102 Commits

Author SHA1 Message Date
Reinaldo Neto a194e47d2d
regression: load user on room info (#5425)
* fix: navigate to myself from mention

* fix: load user on room info

* minor tweak

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-12-26 11:43:57 -03:00
Diego Mello b5c15d6835
fix: supported version expiration only working for exceptions (#5431) 2023-12-26 10:58:19 -03:00
Reinaldo Neto e4d4592145
feat: add "show more" to user info status (#5383)
* improve: handle long status text with a collapsible text element

* remove the points from  show_more value

* refactor the path

* add storyshot

* remove comments

* minor tweak at pt-br

* add the e2e  test

* remove fontInfo

* refactor layout

* fix e2e test

* fix the text for both platforms

* add comment

* update detox to 20.11 to accept regex and fix the test for show more
2023-12-26 10:36:59 -03:00
Devaansh Bhandari ed2edf2008
feat(i18n): Add Hungarian language (#5417)
Signed-off-by: brf153 <153hsb@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-12-22 12:41:50 -03:00
Reinaldo Neto 64d1134ea6
fix: navigate to myself from mention (#5400)
Co-authored-by: Gabriel Casals <83978645+casalsgh@users.noreply.github.com>
2023-12-22 12:36:23 -03:00
Devaansh Bhandari 3e9ab8877c
fix: Add markdown to Directory descriptions (#5399)
Signed-off-by: brf153 <153hsb@gmail.com>
2023-12-18 15:22:46 -03:00
Reinaldo Neto 7934141d31
fix: Cannot read property 'protocol' of undefined (#5377)
* add the buildUrlImage mirroring the web and added unit tests

* add the comments

* rename the file buildImageURL

* minor tweak iurl definition

* remove the old logic of tmp.image and user only the buildImageUrl

* add the url polyfill to work properly on react native

* minor tweak unit test

* refactor isValidUrl

* fix the e2e tests
2023-12-13 12:50:03 -03:00
Reinaldo Neto fd1827f618
fix: hide the edit/delete action based on permission (#5393)
* fix: hide the edit/delete item for not allowed or not own the message

* fix e2e test
2023-12-12 14:58:40 -03:00
Devaansh Bhandari bbdc5c55bb
feat(i18n): add Indian languages (#5385)
Signed-off-by: brf153 <153hsb@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-12-12 13:28:03 -03:00
lingohub[bot] 4250d1dd78
chore(i18n): Language update from LingoHub 🤖 (#5396)
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-12-12 11:56:03 -03:00
Diego Mello 274b88701f
fix: Use same i18n spanish key from web (#5392) 2023-12-11 18:04:10 -03:00
Reinaldo Neto 3a5173ffda
feat: display disabled actions on action sheet (#5356)
* improve: show the item disabled when the user doesn't have permission

* minor tweak changing from disabled to enabled param

* add the behavior at long press message

* minor tweak

* minor tweak

* remove the header notPermission and show toast

* tweak at auto translate e2e test

* minor tweak

* minor tweak translated

* minor tweak en.json

* minor tweak description
2023-12-11 12:51:44 -03:00
Reinaldo Neto 7c0a2692dc
fix: handle cdnPrefix without protocol (#5373)
* fix: handle cdnPrefix without protocol

* cdnPrefix trim
2023-12-11 12:35:33 -03:00
Reinaldo Neto 413377fa63
fix: call the internetStateMiddleware for release mode (#5364)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-12-01 11:05:40 -03:00
Reinaldo Neto b217435ffe
improve: handle attachment actions in a quote and how to jump to message (#5363)
* improve: handle attachment actions in a quote

* actions with video

* actions with audio

* show alert when trying to jump to a message inside a not allowed room

* jump to message from long press

* disable the reply onPress when is a quote or forward

* update tests

* fix 02-broadcast e2e

* fix the e2e tests

* remove the await from handleResumeDownload and remove the esline-disable
2023-11-30 12:03:03 -03:00
Gleidson Daniel Silva 2989b3c2ee
fix: translation prop checking (#5369)
* fix translation checks

* wip
2023-11-29 15:30:15 -03:00
Gleidson Daniel Silva af83fc236f
fix: handle camera permission crash (#5372) 2023-11-29 14:43:03 -03:00
Gleidson Daniel Silva 653201022f
feat (iOS): mobile ringer (#5327)
* add ringtone

* create videoConf category and apply the path on react native notification

* handle action click

* update patch package

* small fix

* temp alert

* wip

* fix action

* fix lint

* wip

* remove clipboard
2023-11-28 17:13:45 -03:00
Gleidson Daniel Silva 74e500a4bb
fix: enables navigation for deleted threads (#5317)
* fix navigation to deleted thread

* fxi threads without name

* fix thread name
2023-11-28 14:17:47 -03:00
Diego Mello 16347b0bb6
fix: Add valid version with valid exception use case (#5368) 2023-11-27 15:28:19 -03:00
Gleidson Daniel Silva 31ed940426
feat (Android): mobile ringer (#5286) 2023-11-24 09:46:58 -03:00
Diego Mello 911957ba66
chore: Remove unused Jitsi deep link (#5361) 2023-11-23 10:11:11 -03:00
Gleidson Daniel Silva 6a1205afcc
fix: call media permissions in android 13+ (#5326)
* add android permissions

* create askAndroidMediaPermissions helper

* ask android permission

* fix i18n import

* remove useless const

* wip

* revert login changes
2023-11-20 13:07:33 -03:00
Reinaldo Neto 0a75a6615c
feat: new audio player (#5160)
* 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

* first commit

* fix togglePlayPause

* separate audio to a folder inside components and minor tweak attachment

* created the slider with text

* play/pause button, currentTime equal the sound, can change the slider and reflect to the sound

* play/pause, track is working and onEnd

* update the icons with play-shaped-filled, pause-shape-filled, loading

* start the tweaks on layout

* can play multiple audios, pausing the previous to execute the new one

* loading animated

* added the audio rate

* layout fixed

* removed the sound manipulation from Slider to manipulate only in the index

* fix time margin horizontal

* fix play 2 audios and play/pause properly

* change the way we treat the audio

* remove audio copy

* minor tweak

* fix rate state

* remove the PAUSE_AUDIO

* fix unloadAll, add hit slop to slider, show the duration on the first render

* refactor colors to be the same as figmas name

* change the class' name and add the method pauseCurrentAudio

* pause audio when unmount a RoomView and unloadAll when focusing at RoomsListView

* pause audio when entering a thread

* fix where call the pauseCurrentAudio

* moved the player from messageAudio to audioPlayer

* refactor audio component

* remove loading

* update snapshot

* fix colors name

* pauseAudio when roomview is blur

* moved audio from message/component/audio to message/Audio

* add navigation focus to AudioPlayer component and fix the jest

* add the { androidImplementation: 'MediaPlayer' }

* fix action sheet swipe 02-room

* fix action sheet swipe 05-threads

* tweak touchable

* remove react.memo from playbutton

* hitSlop

* speed playback from array

* textinputprops

* tweak at names

* minor tweak at onEnd

* minor tweak at names

* update styles

* thumb seek size

* change marginBottom

* add the clamp, adjust the thumb position, remove the necessity of OnEndGestureHandler

* change the utils to constants

* change to audioState

* fix the seek for android

* TDownloadState

* speed array

* pause audio from messagesView when open the files

* update test

* minor tweak

* change the time after ony one click, fixes the thumb to move sync with the click

* Fix seek

* minor tweak Sound to Audio.Sound

* name of Icon

* enable PlaybackSpeed only when playing the audio

* playbackSpeed to mmkv

* mock implementation

* create native button

* minor tweak

* minor tweaks

* playbackSpeed after loadAudio

* avoid show the error when try to setRate without audio

* add messageID to differ audios inside a quote/forward from original one

* unloadRoomAudios instead of unloadAllAudios inside the roomsListView

* minor tweak

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-11-20 11:13:15 -03:00
Reinaldo Neto d6c37bf4a2
feat: capability to enable/disable writing in rooms read only (#5298)
* feat: capability to enable writing in rooms read only

* minor tweak

* add shallowEqual

* change the message box properly when the user is enable to write
2023-11-17 15:48:32 -03:00
Reinaldo Neto 60a352beb4
fix: starting a new thread from an attachment (#5345) 2023-11-17 12:05:04 -03:00
Reinaldo Neto 1d681917b8
fix: show last message when pinned (#5316)
* fix: show last message when pinned

* add the Pinned_a_message and the message as a quote

* tweak at locales
2023-11-14 15:42:31 -03:00
Devaansh Bhandari 5b335bdc37
fix: add channel name when the text is bold (#5319)
* added changes in the Bold.tsx file for Channel Mention

Signed-off-by: bhandari <153hsb@gmail.com>

* added changes for strike and italic

Signed-off-by: bhandari <153hsb@gmail.com>

---------

Signed-off-by: bhandari <153hsb@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-11-13 14:14:37 -03:00
Gleidson Daniel Silva 93c8409354
chore: bump message parser from 0.31.14 to 0.31.26 (#5338)
* chore: bump message parser

* fix markdown value assignment

* update snapshot
2023-11-13 14:00:00 -03:00
Diego Mello 629b8727d2
fix: Catch cloud request errors (#5312) 2023-11-13 13:23:46 -03:00
Gleidson Daniel Silva ebcce11342
fix: fixes error checking related to error translations when starting a call (#5332)
* fix error handling

* add pt-br translation

* add better translation cheking
2023-11-13 11:35:15 -03:00
Devaansh Bhandari e004ca39de
chore: add large_blue_circle emoji (#5324)
Signed-off-by: brf153 <153hsb@gmail.com>
2023-11-09 11:09:25 -03:00
Gleidson Daniel Silva fd7c9176b1
feat: enable navigate to my own profile from messages (#5293)
* enable navigation to my own profile

* fix block user logic

* fix types

* enable navigation to my own profile

* update snapshot
2023-11-08 15:03:53 -03:00
Gleidson Daniel Silva 5db7088251
fix: fixes the logic related to setState when saving the profile (#5297)
* fix: fixes the logic related to setstate when saving the profile

* chore: add reason to error alert

* chore: add focus listener and fix import
2023-11-03 16:44:29 -03:00
Gleidson Daniel Silva 74c2029710
fix: check if the app is on foreground before setting call status (#5315) 2023-11-01 10:21:20 -03:00
Gleidson Daniel Silva bec1bc77c7
fix: checks if the room exists before navigating to it (#5278)
* checks if the room exists before navigating to it

* Update app/i18n/locales/pt-BR.json

Co-authored-by: Diego Mello <diegolmello@gmail.com>

---------

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-10-30 17:41:29 -03:00
Diego Mello 36ca0384b7
fix: minor supported versions details (#5296) 2023-10-25 15:19:40 -03:00
Gleidson Daniel Silva 13af95f8cb
fix: fixes the import of the serverInfo function (#5295) 2023-10-25 11:23:07 -03:00
Diego Mello 5175696555
feat: Cache supported versions timestamp to fetch from cloud once every 12h (#5292) 2023-10-23 16:35:18 -03:00
Diego Mello f1b7cfe510
fix: some details on supported versions (#5284)
* Ignore patches

* Fix null versions find

* Fix cloud request

* Fix inverted date comparison to trigger action sheet
2023-10-19 16:57:13 -03:00
Diego Mello 18b77ab4d6
feat: Supported Versions (#5185) 2023-10-19 10:38:57 -03:00
Gleidson Daniel Silva 4a6a4a3b9a
chore: update some translations to follow new pattern (#5279) 2023-10-19 10:26:17 -03:00
Reinaldo Neto 3f2e5ced19
chore: migrate LoginView to hooks (#5092)
* chore: migrate LoginView to hooks

* minor tweak

* minor tweak

* fix ref

---------

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2023-10-18 14:23:12 -03:00
Reinaldo Neto c0660db06d
chore: migrate AuthenticationWebView to hooks (#5054)
* chore: migrate AuthenticationWebView to hooks

* minor tweak

* remove navigation, tweak at useRoute

---------

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2023-10-18 14:13:42 -03:00
Reinaldo Neto 3cf08c29e1
feat: add the support for CDN_PREFIX (#5266)
* add the support for cdn_prefix

* add cdn-prefix to video and audio too

* refactor where call the store to cdn

* fix e2e test

* add connect redux
2023-10-17 16:28:02 -03:00
Reinaldo Neto 199331f8f6
fix: check the permissions properly to create a discussion and reply in dm (#5217)
* fix: check the permissions properly to create a discussion

* add the permission start-discussion-other-user and fix the permission at messagebox

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-10-16 17:55:38 -03:00
Gleidson Daniel Silva 231057af10
regression(Android): Poor performance in messages list (#5267)
* fix: remove RefreshControl from RoomView

* fix: add container to verify android or ios
2023-10-13 16:34:59 -03:00
Reinaldo Neto 74cd85a069
feat: image base64 (#5264)
* improvement: handle base64

* update tests

* minor tweak

* remove imageprocess and remove the save to gallery from image base64

* Update app/containers/message/Image.tsx

* Update app/views/AttachmentView.tsx

* Update app/views/AttachmentView.tsx

* Update app/views/AttachmentView.tsx

* Update app/containers/message/Image.tsx

* chore: change file name and fix implementation

* chore: remove useless const

* chore: update regex

* chore: update name

* Update app/lib/methods/isImageBase64.ts

* Update app/lib/methods/isImageBase64.ts

* early return

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2023-10-11 11:23:11 -03:00
Gleidson Daniel Silva 62559c852b
regression: disable mediaPlaybackRequiresUserAction on Android (#5263) 2023-10-09 17:24:07 -03:00
Diego Mello 0d7af4088a
fix(Android): Remove RefreshControl from messages list (#5251) 2023-10-09 13:18:02 -03:00