Commit Graph

901 Commits

Author SHA1 Message Date
Djorkaeff Alexandre 58190e5b24 [FIX] Reaction press (#1258) 2019-10-01 09:54:59 -03:00
Diego Mello b9485ad3f8
[FIX] Room subscription issues (#1255) 2019-09-27 17:29:25 -03:00
Diego Mello 3ee97881f3
[FIX] Messagebox onChangeText issues (#1252)
* Stop ongoing debounces on messagebox unmount

* Immediately change send icon, but keep debouncing others

* Make CustomEmoji stateless function

* Fix mentions keyExtractor
2019-09-27 16:17:29 -03:00
Djorkaeff Alexandre d9f7ff836d [CHORE] Update react-native-jitsi-meet to 2.0.1 (#1249) 2019-09-27 16:16:03 -03:00
Djorkaeff Alexandre 22cadb1041 [FIX] Run credentials migration only once (#1245) 2019-09-27 15:52:51 -03:00
Djorkaeff Alexandre 3dd47519fe [CHORE] Update react-native-reanimated to 1.3.0 (#1246) 2019-09-27 14:18:11 -03:00
Djorkaeff Alexandre 83fa56bb9c [DOCS] Add SECURITY.md (#1244) 2019-09-26 16:18:38 -03:00
Djorkaeff Alexandre 22899f316c [FIX] Avatar shown when useRealName is activated (#1162)
* Fix avatar when use real name

* Wrong indentation
2019-09-26 15:35:33 -03:00
Djorkaeff Alexandre fdc5114a30 [FIX] Jest (#1243) 2019-09-26 15:16:50 -03:00
Diego Mello f11723059f
[REGRESSION] Markdown text (#1242) 2019-09-26 14:17:04 -03:00
Djorkaeff Alexandre ca351db73e [FIX] Delete message on thread (#1214) 2019-09-26 14:12:27 -03:00
Diego Mello 6889241b45
[FIX] Remove animation from RoomsListView.willFocus (#1239) 2019-09-26 13:54:39 -03:00
Diego Mello a1297d0e6c
[FIX] Update last open on message stream received (#1240) 2019-09-26 13:54:24 -03:00
Diego Mello dc08dec572
[FIX] Change messagebox icon immediate on change text (#1241) 2019-09-26 13:53:50 -03:00
Diego Mello 4388b2acb1
[FIX] Try/catch JSON.parse XHR response (#1238) 2019-09-26 13:53:04 -03:00
Djorkaeff Alexandre 1c22cc2f9f [CHORE] Update react-native-safe-area-view (#1219) 2019-09-26 13:52:22 -03:00
Diego Mello 11249f962a
Update React Native to 0.61.1 (#1236)
* Update React Native to 0.61.1

* Update patch to SSL Pinning

* Revert storybook
2019-09-26 11:59:27 -03:00
Djorkaeff Alexandre 58389dfdca [FIX] Regex on run slash command (#1223) 2019-09-25 19:14:20 -03:00
Djorkaeff Alexandre 0ff47f477a [CHORE] Update react-native-jitsi-meet (#1235) 2019-09-25 19:13:39 -03:00
Diego Mello c9d016376c
[FIX] Dispatch roomsRequest on app foreground event even if not connected (#1234) 2019-09-25 18:32:30 -03:00
Diego Mello 2e5c4b9b73
[FIX] Slash commands not cleaning is typing and not using state (#1233) 2019-09-25 18:32:13 -03:00
Diego Mello 915d19fbe8
[FIX] Cancel upload and check failed upload (#1232) 2019-09-25 18:31:53 -03:00
Prateek Jain bbc8fe5398 [FIX] Close SortDropdown on sort select (#1230) 2019-09-25 17:43:17 -03:00
Djorkaeff Alexandre e86205c74e [FIX] 👍 emoji (#1202) 2019-09-24 17:48:20 -03:00
vitorandos 94346634ae [CHORE] Use React Fragment shorthand (#1212) 2019-09-24 17:26:56 -03:00
Diego Mello 319ca7f044
[FIX] Unify upload check (#1229) 2019-09-24 17:16:59 -03:00
Djorkaeff Alexandre ae7a9cba60 [REGRESSION] Share this app (#1215) 2019-09-24 17:15:13 -03:00
Djorkaeff Alexandre 31d03ff5e5 [FIX] Show admin panel button logic (#1220) 2019-09-24 17:10:50 -03:00
Djorkaeff Alexandre f29b9aaa75 [FIX] Unnecessary rooms list render on focus (#1226) 2019-09-24 15:19:33 -03:00
Djorkaeff Alexandre 69839d59cd [CHORE] Revert react-navigation-drawer (#1227) 2019-09-24 14:37:13 -03:00
Diego Mello afbbd225e5
[FIX] Link WatermelonDB on share extension (#1218) 2019-09-23 14:47:59 -03:00
Diego Mello 81198b4c4f
[IMPROVEMENT] Use Reanimated's Transitions instead of LayoutAnimation (#1206)
* [IMPROVEMENT] Use Reanimated's Transitions instead of LayoutAnimation

* Don't run on Android

* Refactor

* Remove unnecessary code
2019-09-19 10:32:24 -03:00
Djorkaeff Alexandre b29a2ab216 [FIX] Link jitsi-meet on Share Extension (#1204)
* Link jitsi-meet

* Try fix ci

* Remove realm imports
2019-09-18 18:44:33 -03:00
Djorkaeff Alexandre 99aea22579 [NEW] Jitsi integration (#1196)
* Stash

* Rooms list listing :)

* Animated set state

* Search working

* Fix load rooms on login

* stash db class

* set active db with path

* Remove db on logout

* stash

* Created updateMessages

* Inserting/updating threads

* Persisting thread messages

* Removed unused list

* Loading messages from watermelon

* Debounce updates and rerender message

* optional fields

* Fix realm conflict issues

* Fix some render issues

* stash

* List mount

* stash

* fix message id

* Fix tmsg

* - Save subscription.rid as id on watermelon and _id as _id
- Send room as param to room view

* Throttle room updates

* stash

* comment removeClippedSubviews

* Fetch thread name

* try/catch updateMessages

* Show loading while RoomView.init is still running

* stash

* Fix updateMessages

* Threads

* Delete message

* Permalink

* Pin

* Star

* Report

* MessageActions refactor

* Edit message

* Reply message

* Add reaction

* Auto translate

* Fix connection issues

* Mark message as error if something happened on the call

* Error actions

* get custom emoji

* Always run console.log when __DEV__

* Try to create serversDB

* Don't call updateMessages. Execute that entire logic for one message id instead.

* Refactor update messages

* ServersDB User [Realm -> Watermelon]

* Fix models

* Custom emojis

* Custom emojis on emoji picker

* Frequently used emojis

* Fix add reaction on message

* stash

* Fix

* Read messages

* Fix thread

* Fetch thread header

* Follow/unfollow thread

* Fix thread

* Upload file

* Thread tweak

* Realm -> Watermelon [Share Extension]

* Add RoomsUpdatedAt to Servers Table

* Settings

* Settings

* Fix logout

* SendFileMessage ServersDB

* ServersDB on serverDropdown

* Remove serversDB from Realm

* Load thread messages

* Delete message

* Improve getSettings

* Improve

* Remove subscription

* Remove update

* Update room via socket

* Small refactor

* Fix logout and improve migration

* Refactor updateMessages

* Improve migration

* Remove unnecessary update

* Revert remove runAfterInteractions

* Fix serverDropdown

* Fix merge

* Init room actions Watermelon

* Room actions Watermelon

* Remove realm on room members

* Room swipe -> Watermelon

* Fix hideChannel

* Get roles watermelon

* Get permissions watermelon

* Users typing + memory db

* Auto translate watermelon

* New Message View

* Selected Users View

* try/catch

* Get Slash Commands watermelon

* Slash Commands message box

* Custom emojis message box

* Get rooms message box

* Room info view

* Room info edit

* Save active users

* Small refactor

* Message Actions

* hasPermission await

* last hasPermission fix

* Active users on redux

* Add user roles

* Users typing on redux and remove memory db

* Fix saga delay

* Fix few issues

* Fix slash commands preview

* Draft message

* Add muted

* Unread count watermelon

* Remove realm

* Fiz RoomItem rerenders

* Remove realm config

* Rerender status update on RoomItem

* Refactor RoomsListView

* Fix load missed messages

* Fix room update

* Message refactor

* Fixing lint

* Jitsi config (iOS)

* removeClippedSubviews on iOS only

* Added few interaction managers

* Create jitsiBaseURL

* Call buttons

* Fix few rerenders

* Fix RoomItem status typo

* Fix RoomView.SCU

* Fix broadcast

* Fix user status on RoomActionsView

* Jitsi config (Android)

* Fix RocketChat.hasPermission

* Fix database inconsistencies

* Fix few update issues

* Add rxjs and remove with observables

* Fix tests

* Remove subscriptions

* Fix RoomsListView SCU

* Change database structure and set all schemas to 1

* Fix RoomsListView search

* Call Jitsi method

* Create onlyAudio option (iOS)

* Create onlyAudio option (Android)

* Fixed errors, removed rerenders and added animation

* Fixed a few errors

* Fix lint

* Fix issues caught by LGTM

* fix ios build

* Revert patch

* jitsiTimeout

* Self-builded Android SDK

* Fix load unjoined channel messages

* Log on database path on startup

* Fix join channel

* Remove react-native-realm-path

* Set user status on login.user reducer

* Fix status not rendering on RoomsListView

* Fix few reducers

* Fix users going offline

* Never use "watermelon" term directly. Replaced by "database"

* Fix jitsiTimeout

* Fix custom emoji

* Fix duplicated call messsage

* Creating room from app must update roomUpdatedAt

* Log subscribeRoom start

* Fix room subscribe right after creating a DM

* Fix jest

* Move self-builded sdk to node_modules

* Refactor is read only on messages actions

* Fix typo

* Fix typo

* Review

* Fix schema

* Fix muted & freq emoji & unpin & unstar

* Remove throttleTime to room info & fix reset on edit room

* Fix openServerDropdown spec & Fix unarchive

* Fix MessageAction

* Refactor RoomInfoEditView

* Remove unnecessary condition

* Remove unnecessary condition

* Remove unnecessary condition

* Remove get database

* Rename Command.js to SlashCommand.js

* Create sanitizer util

* Fix indentation

* Create subscription.t index

* Refactor queries on RoomsListView

* Create subscription.name index

* Fix getPermissions

* Fix indentation

* Add missing await

* Fix rocketchat.hasPermission

* Unnecessary change

* Star, pin e delete message refactored

* Refactor customEmojis reducer

* Remove code

* Remove logs

* Remove throttle

* Call this.init on foreground focus on RoomView

* Bump servers schema migration

* Always mark message as sent after a success

* Fetch only messages needed on updateMessages

* Just leave a comment for now

* Fetch only subscriptions returned by fetch

* Fix send message

* Create migration - jitsi_timeout

* Fixes & Update e2e tests

* Add translations pt-br

* Bind callJitsi on RocketChat

* Remove unnecessary mocks

* Remove listeners when call finished

* Use gradlew instead self-builded sdk

* Fix lastmessage call username

* Add react-native-background-timer

* Fix background interval

* Remove unnecessary timeout

* Clear timeout in case there's one active

* Add catch to method call
2019-09-18 14:32:12 -03:00
dependabot[bot] 9663ac8f62 Bump mixin-deep from 1.3.1 to 1.3.2 (#1198)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-17 16:26:06 -03:00
dependabot[bot] 18dae3e565 Bump js-yaml from 3.12.1 to 3.13.1 (#1200)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.1 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.1...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-17 16:25:37 -03:00
dependabot[bot] 225ac46e15 Bump eslint-utils from 1.3.1 to 1.4.2 (#1199)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-17 16:25:21 -03:00
Diego Mello 2887ff04e7
[CHORE] Update navigation lib (#1201)
* Bump react-navigation

* Bump react-native-screens

* Bump react-navigation-drawer and react-native-gesture-handler

* Update mocks

* Add supportLibVersion
2019-09-17 16:24:47 -03:00
Djorkaeff Alexandre adb8c7b379 [FIX] Delete push token when logout (#1173)
* Fix delete push token

* Update @rocket.chat/sdk
2019-09-17 14:17:55 -03:00
Diego Mello 96eb86927a
[FIX] Intended direct mutation state running before initial state gets initiated (#1197) 2019-09-17 11:43:49 -03:00
Djorkaeff Alexandre 8d4d522b63 [IMPROVEMENT] Use FastImage on custom emojis (#1195)
* Use fastImage to custom emojis

* Add Text component on Paragraph render
2019-09-17 10:18:36 -03:00
Lucas Siqueira 37e7e6ed6f [ANDROID] Remove unread count (#1190) 2019-09-16 18:19:14 -03:00
Calebe Rios 5d4ca1ff8c [FIX] Video default resize (#1185) 2019-09-16 18:10:06 -03:00
Filipe Brito ebb60489f0 [FIX] Server URL regex (#1175) 2019-09-16 18:04:20 -03:00
Filipe Brito 2b1dc27181 [FIX] Custom OAuth URL (#1172)
* Fix custom oauth url.

* Removes console.log(...)
2019-09-16 18:00:44 -03:00
Djorkaeff Alexandre 32a681036e [CHORE] Use JoyPixels (#1164)
* react-emojione -> emoji-toolkit

* Change to toUnicode()

* Fix ascii emoji on joypixels

* Revert unnecessary modify

* Fix some emojis

* Fix custom emojis (Android)

* Update Snapshot
2019-09-16 17:50:51 -03:00
Diego Mello 9ba37107c7
[CHORE] Migrate to Watermelon (#1171)
* Install

* Create subscriptions

* Subscription observing and sorting

* Saving last message

* Stash

* Stash

* stash

* Stash

* Rooms list listing :)

* Animated set state

* Search working

* Fix load rooms on login

* stash db class

* set active db with path

* Remove db on logout

* stash

* Created updateMessages

* Inserting/updating threads

* Persisting thread messages

* Removed unused list

* Loading messages from watermelon

* Debounce updates and rerender message

* optional fields

* Fix realm conflict issues

* Fix some render issues

* stash

* List mount

* stash

* fix message id

* Fix tmsg

* - Save subscription.rid as id on watermelon and _id as _id
- Send room as param to room view

* Throttle room updates

* stash

* comment removeClippedSubviews

* Fetch thread name

* try/catch updateMessages

* Show loading while RoomView.init is still running

* stash

* Fix updateMessages

* Threads

* Delete message

* Permalink

* Pin

* Star

* Report

* MessageActions refactor

* Edit message

* Reply message

* Add reaction

* Auto translate

* Fix connection issues

* Mark message as error if something happened on the call

* Error actions

* get custom emoji

* Always run console.log when __DEV__

* Try to create serversDB

* Don't call updateMessages. Execute that entire logic for one message id instead.

* Refactor update messages

* ServersDB User [Realm -> Watermelon]

* Fix models

* Custom emojis

* Custom emojis on emoji picker

* Frequently used emojis

* Fix add reaction on message

* stash

* Fix

* Read messages

* Fix thread

* Fetch thread header

* Follow/unfollow thread

* Fix thread

* Upload file

* Thread tweak

* Realm -> Watermelon [Share Extension]

* Add RoomsUpdatedAt to Servers Table

* Settings

* Settings

* Fix logout

* SendFileMessage ServersDB

* ServersDB on serverDropdown

* Remove serversDB from Realm

* Load thread messages

* Delete message

* Improve getSettings

* Improve

* Remove subscription

* Remove update

* Update room via socket

* Small refactor

* Fix logout and improve migration

* Refactor updateMessages

* Improve migration

* Remove unnecessary update

* Revert remove runAfterInteractions

* Fix serverDropdown

* Fix merge

* Init room actions Watermelon

* Room actions Watermelon

* Remove realm on room members

* Room swipe -> Watermelon

* Fix hideChannel

* Get roles watermelon

* Get permissions watermelon

* Users typing + memory db

* Auto translate watermelon

* New Message View

* Selected Users View

* try/catch

* Get Slash Commands watermelon

* Slash Commands message box

* Custom emojis message box

* Get rooms message box

* Room info view

* Room info edit

* Save active users

* Small refactor

* Message Actions

* hasPermission await

* last hasPermission fix

* Active users on redux

* Add user roles

* Users typing on redux and remove memory db

* Fix saga delay

* Fix few issues

* Fix slash commands preview

* Draft message

* Add muted

* Unread count watermelon

* Remove realm

* Fiz RoomItem rerenders

* Remove realm config

* Rerender status update on RoomItem

* Refactor RoomsListView

* Fix load missed messages

* Fix room update

* Message refactor

* Fixing lint

* removeClippedSubviews on iOS only

* Added few interaction managers

* Fix few rerenders

* Fix RoomItem status typo

* Fix RoomView.SCU

* Fix broadcast

* Fix user status on RoomActionsView

* Fix RocketChat.hasPermission

* Fix database inconsistencies

* Fix few update issues

* Add rxjs and remove with observables

* Fix tests

* Remove subscriptions

* Fix RoomsListView SCU

* Change database structure and set all schemas to 1

* Fix RoomsListView search

* Fixed errors, removed rerenders and added animation

* Fixed a few errors

* Fix lint

* Fix issues caught by LGTM

* fix ios build

* Fix load unjoined channel messages

* Log on database path on startup

* Fix join channel

* Remove react-native-realm-path

* Set user status on login.user reducer

* Fix status not rendering on RoomsListView

* Fix few reducers

* Fix users going offline

* Never use "watermelon" term directly. Replaced by "database"

* Fix custom emoji

* Creating room from app must update roomUpdatedAt

* Log subscribeRoom start

* Fix room subscribe right after creating a DM

* Refactor is read only on messages actions

* Fix typo

* Fix typo

* Review

* Fix schema

* Fix muted & freq emoji & unpin & unstar

* Remove throttleTime to room info & fix reset on edit room

* Fix openServerDropdown spec & Fix unarchive

* Fix MessageAction

* Refactor RoomInfoEditView

* Remove unnecessary condition

* Remove unnecessary condition

* Remove unnecessary condition

* Remove get database

* Rename Command.js to SlashCommand.js

* Create sanitizer util

* Fix indentation

* Create subscription.t index

* Refactor queries on RoomsListView

* Create subscription.name index

* Fix getPermissions

* Fix indentation

* Add missing await

* Fix rocketchat.hasPermission

* Unnecessary change

* Star, pin e delete message refactored

* Refactor customEmojis reducer

* Remove code

* Remove logs

* Remove throttle

* Call this.init on foreground focus on RoomView

* Bump servers schema migration

* Always mark message as sent after a success

* Fetch only messages needed on updateMessages

* Just leave a comment for now

* Fetch only subscriptions returned by fetch

* Set room param on RoomView header in find room

* Update kotlin

* Fix auto translate constructor

* Fix few setState on constructor

* Fix empty room image blinking while mounting

* Improve fetch/persist execution for custom emojis, permissions and settings

* Query only user tapped on RoomMembersView

* Fix typo on canOpenRoom
2019-09-16 17:26:32 -03:00
Diego Mello 2d8b1c5ac2
Bump version to 1.20.0 (#1184) 2019-09-10 16:53:21 -03:00
Djorkaeff Alexandre 0ea0dc2aad [FIX] Prevent navigation if serverInfo is undefined (#1170)
* Fix navigate when serverInfo is undefined

* Fix logs
2019-09-02 13:59:41 -03:00
Djorkaeff Alexandre 2515295fc6 [NEW] Support client certificates for SSL (two-way authentication) (#1125) 2019-09-02 13:19:05 -03:00