Skip to content

Conversation

@diegolmello
Copy link
Member

Proposed changes

Issue(s)

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

djorkaeffalexandre and others added 30 commits August 20, 2020 11:48
* Button to preferences view

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Create screen to preferences and listItem to notifications

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Refactoring NotificationPreferencesView

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* List notification preferences

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Adding translations to labels

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* SetUserPreferences api call

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Saving new user preference in API

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Fix lint

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Add in-app notification test

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Fix in app mentions preference

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Improve object in testInAppNotification

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Removing improper options for NotificationpreferencesView

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Adding API version

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Use redux in UserNotificationPrefView

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Remove in app test

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Use components from another view

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Removing verification for testing in-app notifications

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Move to ProfileView

Co-authored-by: Diego Mello <[email protected]>
* Add enterpriseModules on Redux

* Fetch enterprise modules and put on redux

* hasLicense

* Clear modules

* Hide omnichannel rooms

* Minor refactor

* Hide omnichannel toggle

* Check license on user status

* Apply on search

* lint

* Look for 'livechat-enterprise'

* One module is enough to enable the features

* Unhide omnichannel rooms

* Sort tweaks

* Move omnichannel toggle to RoomsListView

* Remove omnichannel toggle from SettingsView

* Fix toggle

* Ask to enable omnichannel

* Lint

* Fix issues found on review
* [FIX] User Preferences

* PreferencesView -> UserPreferencesView

Co-authored-by: Diego Mello <[email protected]>
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-590103

Co-authored-by: Diego Mello <[email protected]>
* create play and foss build

* update package.json to generate each build

* check1

* requested changes

* initial commit

* Update config.yml

* minor changes

* remove bugsnag from foss build

* remove bugsnag tasks from foss job

* fix stuck screen

* fixes

* update

* fix lint

* finalise 🚀

* requested changes

* share app for fdroid

* update

* use negation for builds

* requested change

* update share app

* fix issues due to latest sync

* add extra line

* fix lint

* update

* update

* fix bugsnag issue

* Update config.yml

* Fix store url

* Foss release instead of debug

* Add hold for foss

* Fix build

* requested changes

* update name and icons

* update

* fix

* Revert "Bump version to 4.11.0 (#2392)"

This reverts commit ea28798.

* finalise

Co-authored-by: Djorkaeff Alexandre <[email protected]>
Co-authored-by: Diego Mello <[email protected]>
#2423)

* [IMPROVEMENT] Add subscription and room events on the same batch queue

* Send both params

* Unused var
* Logout from other logged in locations

* Add UI feedback for the request result

* Refactor request to use the proper REST API

* Change backgroundColor

* I18n

Co-authored-by: Diego Mello <[email protected]>
* New field in table of users

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Saving when the user logged in with email and password

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Saving login method info

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Ask for the user to clear cookies

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Fix lint

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Removing loginMethod from redux and add I18n

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Using async/await instead of then/catch

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Fix lint

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Pods

* Added dismissText on showConfirmationAlert

* Fix iOS

* Rename function

* I18n tweaks

Co-authored-by: Diego Mello <[email protected]>
* Adding missing prop to item object

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Resolving the missing date in the files section in a more elegant way

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Using ts attribute always inside of an item object

Signed-off-by: Ezequiel De Oliveira <[email protected]>

Co-authored-by: Diego Mello <[email protected]>
Signed-off-by: Ezequiel De Oliveira <[email protected]>

Co-authored-by: Diego Mello <[email protected]>
Signed-off-by: Ezequiel De Oliveira <[email protected]>

Co-authored-by: Diego Mello <[email protected]>
* Spotlight issues

* Fix room tests

* Fix roomactions tests
* [FIX] Logout from custom oauth when using password

* Remove an useless const

Co-authored-by: Diego Mello <[email protected]>
…2426)

* [IMPROVEMENT] Move toggle and inquiry to Enterprise

* Move inquiry stream to ee

* Emit inquiry subscribe

* imports to ee last

* Add readme to ee

Co-authored-by: Djorkaeff Alexandre <[email protected]>
* [FIX] Chrome debugging

* Remove rn-fetch-blob
* Only enable HTTP and user CAs on debug builds and

* Allow User CAs in prod

* Add config on debug

* Add lint

Co-authored-by: Diego Mello <[email protected]>
* Add E2EKey to Subscription Model

* Install react-native-simple-crypto

* Install bytebuffer

* Add translations

* CreateChannel Encrypted toggle

* Request E2E_Enabled setting

* Add some E2E API methods

* POC E2E Encryption

* Garbage remove

* Remove keys cleaner

* Android cast JWK -> PKCS1

* Initialize E2E when Login Success

* Add some translations

* Add e2e property to Message model

* Send Encrypted messages

* (iOS) PKCS1 -> JWK & e2e.setUserPublicAndPrivateKeys

* (Android) PKCS1 -> JWK & e2e.setUserPublicAndPrivateKeys

* Create an encrypted channel

* Fix app crashing on RoomsList

* Create room key

* Set Room E2E Key (Android)

* Edit room encrypted

* Show encrypted icon on messages

* logEvents

* Decrypt pending subscriptions & messages

* Handle user cancel e2e password entry

* E2ESavePasswordView

* Update Snapshot

* Add encrypted props to message on Send

* Thread messages encryption

* E2E -> Encryption

* Share Extension: Share encrypted text

* (POC) Search messages on Encrypted room

* Provide room key to new users

* Request roomKey on stream-notify-room-users

* Add e2eKeyId to Room Model

* (WIP) E2E Encryption Screens

* Remove encryption subscription file

* Move E2E_Enable to Server Model

* Encryption List Banner

* Move Encryption init to Sagas

* Show banner only when enabled

* Use RocketChat/react-native-simple-crypto

* Search on WM only when is an Encrypted channel

* (WIP) Encryption Banner

* Encryption banner

* Patch -> Fork

* Improve send encrypted message

* Update simple-crypto

* Not decrypt already decrypted messages

* Add comments

* Change eslint disable to inline

* Improve code

* Remove comment

* Some fixes

* (WIP) Encryption Screens

* Improve sub find

* Resend an encrypted message

* Fix comment

* Code improvements

* Hide e2e buttons on features if it is not enabled

* InApp notifications of a encrypted room

* Encryption stop logic

* Edit encrypted message

* DB batch on decryptPending

* Encryption ready client

* Comments

* Handle getRoomInstance errors

* Multiple messages decrypt

* Remove unnecessary try/catch

* Fix decrypt all messages history

* Just add a questionmark

* Fix some subscriptions missing decrypt

* Disable request key logic

* Fix unicode emojis

* Fix e2ekey request

* roomId -> subscription

* Decrypt subscription after merge

* E2ERoom -> EncryptionRoom

* Fix infinite loading

* Handle import key errors

* Handle request key errors

* Move e2eRequestRoomKey to Rocket.Chat

* WIP handshake when key should be requested

* Add search messages explanation

* Remove some TODO and update comments

* Improvements

* Dont show message hash to user

* Handle key request & prevent multiple calls

* Request E2EKey on decryptSubscription that doesn't exists on database yet

* Insert decrypted subscription

* Fix crash after login

* Decrypt sub when receive the key

* Decrypt pending messages of a room

* Encrypted as a switch

* Buffer to Base64 URI Safe

* Add a relevant comment

* Prevent import key without a privateKey

* Prevent create a new instance when client is not ready

* Update simple-crypto & remove replace trick

* More comments

* Remove useless comment

* Remove useless try/catch

* I18n all E2E screens

* E2ESavePassword -> E2ESaveYourPassword

* Prevent multiple views on message when is not encrypted

* Fix encryption toggle not working sometimes

* follow some suggestions

* dont rotate icons

* remove unnecessary condition

* remove unreachable event

* create channel comment

* disable no-bitwise rule for entire file

* loadKeys -> persistKeys

* getMasterKey -> generateMasterKey

* explicit difference between E2EKey & e2eKeyId

* roomId -> rid

* group columns

* Remove server selector

* missing log events

* remove comment

* use stored public key

* update simple-crypto & remove base64-js patch

* add some logs

* remove unreachable condition

* log errors

* handle errors on provide key directly on subscription

* Downgrade RocketChat/react-native-simple-crypto

* improve get room instance

* migration of older apps

* check encrypted status before send a message

* wait client ready

* use our own base64-js

* add more jest tests

* explain return

* remove unncessary stop

* thrown error to caller

* remove superfluous checks

* use Encryption property

* change ready state logic

* ready -> establishing

* encryption.room -> encryptionRoom

* EncryptionRoom -> Room

* add documentation

* wait establishing before provide a room key

* remove superfluous condition

* improve error handling logic

* fallback e2ekey set

* remove no longer necessary check

* remove e.g.

* improve getRoomInstance

* import from index

* use batch

* fix a comment

* decrypt tmsg

* dont show hash when message is encrypted

* Fix detox

* Apply suggestions from code review

Co-authored-by: Diego Mello <[email protected]>
* Catching errors

* [IMPROVEMENT] Show errors on server enter

* "Not rc server" instead of "invalid or insecure url" msg
* Add dropdown

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Adding new table to serverSchema

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Saving if not exists

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* list of visited servers finished

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Fix lint

Signed-off-by: Ezequiel De Oliveira <[email protected]>

* Rename ServerLinks to ServersHistory

* Refactor

* Save username

* Sort servers desc

* ServerInput

* Item

* Refactor

* Layout tweaks

* Layout

* query by text

* Small refactor

* Redirecting to login

* Save username for oauth

* Fix keyboard persist

* Add tests

* Unnecessary yield

* Stop rendering FlatList logic when there's no servers on history

* Dismiss keyboard and autocomplete when tapped outside server TextInput

Co-authored-by: Diego Mello <[email protected]>
diegolmello and others added 25 commits April 1, 2021 09:58
* Fix clear cache

* Write e2e tests

* Fix lint

* Fix isRTL
* [CHORE] Go to room from hashtag

* Layout tweaks

Co-authored-by: Diego Mello <[email protected]>
* [FIX] Search input not using the whole space

* Fix on getHeaderTitlePosition

Co-authored-by: Diego Mello <[email protected]>
* [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 <[email protected]>
* [E2E TEST] Move threads test to another file

* changed descirbe title

* Rearrange files

Co-authored-by: Diego Mello <[email protected]>
* [FIX] Fix Regex Typo

* Add story for testing

Co-authored-by: Diego Mello <[email protected]>
* [FIX] Make attachment validation compatible with web client

* Added stories

Co-authored-by: Diego Mello <[email protected]>
* Remove time if no message_link

* Fix message stories for replies

* Final stories fix

Co-authored-by: Diego Mello <[email protected]>
* Use I18n translate in login text input label

* Add to register and add missing strings

Co-authored-by: Diego Mello <[email protected]>
* 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 <[email protected]>
* [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 <[email protected]>
* Update StatusView.js

* Minor tweak

* Minor tweaks

Co-authored-by: Diego Mello <[email protected]>
* Add search by name in members list

* Update RoomMembersView search

Co-authored-by: Diego Mello <[email protected]>
# Conflicts:
#	.circleci/config.yml
#	android/app/build.gradle
#	android/fastlane/Fastfile
#	app/containers/RoomHeader/RoomHeader.js
#	app/views/AuthenticationWebView.js
#	ios/RocketChatRN.xcodeproj/project.pbxproj
#	ios/RocketChatRN/Info.plist
#	ios/ShareRocketChatRN/Info.plist
#	package.json
@diegolmello diegolmello merged commit 7899f4b into master Apr 16, 2021
@diegolmello diegolmello deleted the beta-4.16.1 branch April 16, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.