Commit Graph

593 Commits

Author SHA1 Message Date
Djorkaeff Alexandre dafeb68704 [IMPROVEMENT] Change "resend" icon position (#1048) 2019-07-17 11:06:39 -03:00
Diego Mello 346fa3cf61
Load views as needed (#1056) 2019-07-17 10:37:20 -03:00
Djorkaeff Alexandre 13859fa17d [CHORE] Switch to react-native-localize (#1043) 2019-07-16 11:30:29 -03:00
AnBo83 5a046ce5ae [i18n] Add missing de translations (#1040) 2019-07-15 15:10:04 -03:00
Diego Mello 3619e0ab7f
[FIX] Auto-translate messages as they arrive (#1049)
* Comment removeClippedSubviews

* Comment width animation

* Remove redux from RoomItem

* Fix wrong re-render comparison

* Remove listener

* Raise minDeltaX

* memo actions

* Spring with native driver

* Refactor functions

* Fix props issues

* Remove RoomItem.height

* Long swipe

* Refactor animations

* this.rowTranslation -> this.transX

* Moved state to this

* [FIX] Auto-translate messages as they arrive
2019-07-15 13:56:52 -03:00
Diego Mello c2497145fc
[FIX] Swipe animations (#1044)
* Comment removeClippedSubviews

* Comment width animation

* Remove redux from RoomItem

* Fix wrong re-render comparison

* Remove listener

* Raise minDeltaX

* memo actions

* Spring with native driver

* Refactor functions

* Fix props issues

* Remove RoomItem.height

* Long swipe

* Refactor animations

* this.rowTranslation -> this.transX

* Moved state to this

* Fix favorite button
2019-07-15 13:54:28 -03:00
Diego Mello ba217ca5ff
[FIX] Set UserDefaults AppGroup on notification tap (#1047) 2019-07-12 10:44:31 -03:00
Diego Mello 719cf33c55
[FIX] Append server URL on avatar if necessary (#1038) 2019-07-05 11:46:37 -03:00
IlarionHalushka 33611103f6 [FIX] Decrease bigger emoji size to 30 (#1031) 2019-07-04 13:17:57 -03:00
Diego Mello b444c425d2
[FIX] Rooms swipes (#1034)
* Regression: on press style feedback

* Action button styles

* Fix animations

* Styles changed

* Update subscription without having to wait for socket

* Calculate width on RoomsListView instead
2019-07-04 13:15:30 -03:00
Diego Mello d6d6578f96
[FIX] iOS share credentials build (#1028)
* [FIX] iOS share credentials build

* Use `hasMigration` as a string
2019-07-02 20:16:35 -03:00
pranavpandey1998official 47676c2286 [NEW] Room swipe actions: mark as read/unread, hide, fav (#976)
* added unread and fav feature

* changed the layout

* fix jest

* done requested changes

* added requested changes
2019-07-01 11:20:38 -03:00
pranavpandey1998official 481458285b [IMPROVEMENT] Use Rest API for file upload (#1005)
* removed rn-fetch-blob and use native XMLHttpRequest instead

* removed unnessary changes

* fix android bug

* fix android bug

* added tmid support

* fix bug

* fixed isssue with cacel model

* fix problems with audio

* done requested changes

* fix bug with android
2019-06-28 16:07:20 -03:00
Diego Mello 3b43cb3fb7
[IMPROVEMENT] Use haptics rather than vibration (#1016)
* Install expo-haptics

* Use expo-haptics rather than RN's Vibration module
2019-06-28 14:07:17 -03:00
Diego Mello b3986b98b5
[NEW] Auto-translate (#1012)
* Update realm

* View original and translate working

* Read AutoTranslate_Enabled setting

* RocketChat.canAutoTranslate()

* AutoTranslateView

* Save language

* Auto-translate switch

* Translate message
2019-06-28 14:02:30 -03:00
pranavpandey1998official 3ca1bdf7d1 [NEW] Custom fields on signup (#1013)
* added custom feilds on registration

* added flag as leftIcon and removed lable

* added try and catch

* typo
2019-06-28 09:40:23 -03:00
Djorkaeff Alexandre 8931118032 [IMPROVEMENT] Refactor empty space regex on quote (#1017)
* 🎨 Improve regex to empty space on quote

* 🎨 Improve on regex to empty space on quote
2019-06-28 09:33:39 -03:00
Djorkaeff Alexandre d017348dfe [FIX] Empty message if contains only a link (#787)
* Fix empty message if contains only a link

* 🐛 Fix empty space
2019-06-27 14:49:44 -03:00
IlarionHalushka 013c151c10 [IMPROVEMENT] Bigger emoji in emoji only messages (#793)
* issue #725: bigger emoji in emoji only message

* issue-725/add storybook for Message/Emoji

* issue-725: update storybook/Message jest snapshot

* comment storybook import

* allow spaces and line breaks in emoji only message

* merge develop

* revert unnecessary spacing
2019-06-27 13:35:45 -03:00
IlarionHalushka fc264f0601 [IMPROVEMENT] Hide frequently used emoji tab when empty (#792) 2019-06-27 13:16:05 -03:00
Djorkaeff Alexandre 636518b6b3 [FIX] Don't run UserDefaults credentials on Android (#1015)
* 🐛 Fix native credentials (android)

* Fix migration loop
2019-06-27 09:35:20 -03:00
Djorkaeff Alexandre 255ea84599 [IMPROVEMENT] Share credentials with Rocket.Chat.iOS (#982)
*  Create user table

*  Introduce user table

* 🔥 Remove unused table

*  Add userdefaults to storage data

* 💚 Fix android build

*  Get credentials from iOS native client

* 🔥 Remove unused code

*  Revert sign xcode

* 🐛 Fix first login-logout

* 🎨 Use constants to UserDefaults Keys

* 🐛 Fix clear server-user-info on logout

* 🐛 Fix filter null value

* 🚑 Remove user object in logout

*  Fix get servers from native-client

* 🚑 Fix error on change server
2019-06-26 16:50:03 -03:00
Diego Mello e2f9241040
[FIX] App hang on "updating" (#997)
* [FIX] App hang on "updating"

* Fix iOS notification tap
2019-06-26 09:33:56 -03:00
Diego Mello b12c14fb78
[IMPROVEMENT] Use expo-web-browser (#992)
* Add unimodules

* Working on iOS

* Working on android

* Remove react-native-safari-view

* Remove previous android link lib

* Show webpage title on Android

* Fix iOS build
2019-06-21 13:39:20 -03:00
IlarionHalushka dad18219dd [BUG] Profile screen gets frozen when submitting invalid current password (#974)
* fix 968: [BUG] Profile screen gets frozen when submitting invalid current password

* revert changes to yarn.lock

* remove unnecessary line

* revert changes to yarn.lock

* revert changes to yarn.lock
2019-06-21 13:38:26 -03:00
Diego Mello e52739e305
[FIX] Join discussion (#1000) 2019-06-20 16:02:50 -03:00
Weijia 1383b9b735 [IMPROVEMENT] Activity indicator on web view OAuth (#980)
* add activity indicator when web view is loading

* fix eslint error

* remove one extra newline
2019-06-20 16:02:16 -03:00
IlarionHalushka 5c8652ec16 [FIX] Broadcast channel is not readonly (#996) 2019-06-20 15:33:15 -03:00
Diego Mello 1ba62f16ff
[FIX] Change rooms request's race cancellation condition (#987)
* [FIX] Add Inactive state to rooms request's race cancellation

* Changed rooms request's cancellation rules
2019-06-18 17:12:33 -03:00
Diego Mello 319630949e
[FIX] Cancel ongoing tasks on server change (#984)
* Fork selectServer and loginSuccess

* Fork tasks on login

* Refactor

* Remove room sub and requests on logout

* Comment room header disabled rule

* Check server on rooms stream

* Uncomment disabled props

* Fix updating state

* Comment last fetch user presence date
2019-06-17 10:57:07 -03:00
AnBo83 892cf58ffb [i18n] Add missing strings in de.js (#981)
* [i18n] Add missing strings in de.js

* Update de.js

* Update de.js

* Update de.js

* Update de.js

* Update de.js

* Update de.js
2019-06-13 08:16:47 -03:00
pranavpandey1998official c14714f16f [NEW] Settings view (#900)
* new settings view

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* fix eslint

* eslint fixed all bugs and setup on my device

* move version from sidebar to settingsView

* add server Version not hard coded

* goto root stack after change language

* support RTL

* fix the ui of last section

* fixed bugs done requested changes

* added actions for contact us and license

* done requested changes

* removed verticle scroll indicator

* removed default export of device info

* fixed separator styling

* refactor Items in settings view

* changed language view

* change activeOpacity

* done requested changes

* fixed lint

* changed layout

* added test

* fix bug

* fix bug

* added e2e tests

* undone unnessary changes

* undone unnessary changes

* removed firebase

* Comment slash e2e tests

* Refactor Settings

* Refactor LanguageView

* Separator

* Unified styles

* fix indentation
2019-06-11 11:01:40 -03:00
pranavpandey1998official 82afb63327 [NEW] Slash commands (#886)
* setup database

* added getSlashCommands to loginSucess

* added slash command first prototype

* added preview feture for commands that have preview enabled

* address requested changes

* added preview options for other types of files too

* address changes

* done requested changes

* undone un-nessary changes

* done suggested changes

* fixed lint

* done requested changes

* fixed lint

* fix e2e
2019-06-10 15:36:56 -03:00
Diego Mello d68eb01b82
[NEW] Read receipt (#975)
* switching to ubountu

* added read Recipt functionality to the app
fix: #542

* placed the check icon on the end of timestamp

* removed linting errors

* updating snapshots

* done requested changes

* removed width scrollView

* done required changes

* fixed linting errors

* added migrations

* resolved conflicts and done requested changes

* undone uneesasary changes

* adding migrations

* done requested changes

* Add stories and fix some issues
2019-06-10 15:36:31 -03:00
Diego Mello 467a2d4002
[NEW] In-app notification (#964)
* added Notification badge

* added notification to state

* added condition not see notification of current room

* fixed lint

* fixed some bugs

* fixed some bugs

* removed navigation prop

* fixed navigation bug

* removed unessary changes

* done requested chamges

* made separate notification for ios and android

* merged notification

* Removed unnecessary sub

* Animation

* Layout changes

* Refactor
2019-06-10 13:23:19 -03:00
Diego Mello b7e6d3615f
[NEW] Directory and Federation (#967)
* Initial

* Search working

* Refactor layout

* Layout and search working

* Navigate

* Remove inline styles and fix i18n

* Federation setting

* Missing i18n

* Fix android style

* Refactor
2019-06-10 13:22:35 -03:00
Weijia 4382eca8b6 [FIX] Draft message do not go away when whole message is removed #965 2019-06-08 08:31:29 -03:00
Diego Mello 3cd84a10f6
[FIX] Change server issue (#960)
* [FIX] Lazy fetch server info

* [FIX] Multiple servers issues
2019-06-05 16:11:29 -03:00
IlarionHalushka 109a247c8d [FIX] Profile update (#955) 2019-06-05 13:29:07 -03:00
Diego Mello 27de8c1f84
[REGRESSION] Get rooms on app restore (#958) 2019-06-05 10:39:12 -03:00
Diego Mello 86b79be15e
[FIX] Lazy fetch server info (#959) 2019-06-05 10:38:41 -03:00
Djorkaeff Alexandre bd9f4aa219 [FIX] Stop mention tracking when messagebox is empty (#957) 2019-06-03 13:56:16 -03:00
Diego Mello b28d79e644
[FIX] Thread crash if room is undefined (#956) 2019-06-03 09:53:06 -03:00
Diego Mello 8db19c8a84
[IMPROVEMENT] Open links as push instead of modal (#949) 2019-05-31 12:09:46 -03:00
Diego Mello 3126442794
[FIX] Reply preview showing the entire message (#947) 2019-05-31 11:43:21 -03:00
Diego Mello 2d2ef6121c
[FIX] Crash on message long press (#945) 2019-05-31 11:42:54 -03:00
lolimay a0d0d61458 [FIX] Gitlab url hardcoded (#921)
* [FIX] Gitlab url hardcoded problem
* Closes https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/251

* Fix API_Gitlab_URL type
2019-05-30 15:56:18 -03:00
Djorkaeff Alexandre 957182bf55 [FIX] App crash with backspace on input message (#906)
* Fix - App crash with backspace on input message

* Improving code to fix backspace bug

* Fix destructuring undefined

* Improvement code to fix backspace bug
2019-05-30 14:19:26 -03:00
Djorkaeff Alexandre 29286e98a8 [IMPROVEMENT] Share channel (#908)
* Generate and share permalink to rooms

* Create constant to share type

* Fix unnecessary await

* Remove unnecessary test

* Revert delete e2e test
2019-05-29 18:19:12 -03:00
Diego Mello b1eb18351f
[IMPROVEMENT] Update user presence endpoint (#924)
* [IMPROVEMENT] Update user presence endpoint

* Use `from` parameter in case of reconnection
2019-05-28 13:52:26 -03:00
Diego Mello a148e6d15d
[FIX] Analytics error events (#930) 2019-05-28 13:18:46 -03:00
Diego Mello 9e4a4d2454
[CHORE] Use react-native-firebase (#928)
We need to migrate from deprecated react-native-fabric to react-native-firebase.
This PR enables following Firebase features:
* Analytics
* Crashlytics
* Performance

It also tracks screen view without the necessity of HOC.

Future work:
I won't do it in this PR because it's large enough, but we need to log more app events, like 'sent_message', 'open_admin', 'media_upload', etc.
2019-05-28 10:03:08 -03:00
Diego Mello 9d79580946
[IMPROVEMENT] Messagebox typing and buttons refactor (#920)
* Debounce onChangeText

* Refactor FilesActions

* Clear input asap

* Different buttons on iOS/Android

* Minor fragment refactor

* Import emoji keyboard on android only
2019-05-27 13:19:39 -03:00
Diego Mello 84bd7b3e34
[FIX] Reaction count not rerendering (#917) 2019-05-23 14:51:42 -03:00
Diego Mello a1b1af01c9
Update RN to 0.59.8 (#896)
* update IOS react native to 0.59.8

* update Android react native to 0.59.8

* fix eslint errors

* Android debug working

* Android build

* Fix lint

* Making jest happy

* Update CircleCI android image

* Fix android build

* Use 32 bits

* Fix iOS build

* Update detox

* Use new Xcode build system

* Use old build system

* Update realm (64 bits support)
2019-05-22 17:15:35 -03:00
Diego Mello d3cb4ede5a
[FIX] Get custom emoji on reactions modal (#913) 2019-05-22 11:55:04 -03:00
Diego Mello 944e4198bb
[FIX] Message grouping not re-rendering (#911) 2019-05-21 10:32:06 -03:00
Diego Mello 896240457f
[IMPROVEMENT] Add toggle markdown to settings (#907)
* Add toggle markdown to settings

* Remove unused translation
2019-05-21 09:12:15 -03:00
Diego Mello 60418b75a4
Message render performance (#880)
- Refactored Message component to use React.memo and re-render only what's necessary
- Added a test mode to toggle markdown parse by long press drawer (it'll be removed in the next release)
2019-05-20 17:43:50 -03:00
pranavpandey1998official 31cf0e5f2f [NEW] Admin (#800)
* added admin panel

* reverting some changes

* fixed problem with authToken

* changed tab to space

* done requested changes

* fixed lint

* added react-native-webview

* Install webview pod
2019-05-18 16:31:33 -03:00
pranavpandey1998official d969b04d3a [NEW] Report message (#818) 2019-05-16 10:40:50 -03:00
Diego Mello 28628b4dba
Switch toast lib (#898)
* removed toast from ios

* changed showToast to showAlert

* removed from android

* fix lint

* conflict resolved

* fixed lint

* Fix toast position

* Change toast style

* Use followMessage from rest

* Temporary disable some visual toast tests

* Unnecessary lib version change
2019-05-15 16:33:30 -03:00
Diego Mello b03f69c6f3
Remove "updating" indicator inside the room (#895) 2019-05-14 17:06:17 -03:00
IlarionHalushka 3733f776fc issue #799 merger message views (#876)
On Room Actions, we have Files, Mentions, Starred and Pinned.
They have similar APIs and logic.
All of those could be merged into one generic view (MessagesView).
Maybe even Search could be in this merge.

Note: They're similar, but have own rules (unstar, unpin, etc).

This change may reduce 1MB to our release bundle size, since we're going to remove a lot of boilerplate.
2019-05-10 14:09:07 -03:00
Diego Mello 7e513ee73a
[FIX] Remove listeners on RoomView header unmount (#874) 2019-05-04 13:46:09 -03:00
Diego Mello 10210d0dcf
[FIX] Typing not getting cleared after popping a room (#873) 2019-05-03 14:17:29 -03:00
Diego Mello 2492371b50
[FIX] Check if room is mounted before setting state (#864)
* Tweaks on sequential threads messages

* Update tests

* Fix quote

* Prevent from deleting thread start message when positioned inside the thread

* Remove thread listener from RightButtons

* Fix error on thread start parse

* Stop parsing threads on render

* Check replied thread only if necessary

* Fix messages don't displaying

* Fix threads e2e

* RoomsListView.updateState slice

* Stop fetching hidden messages on threads

* Check if RoomView is mounted before rendering

* Refactor navigation events on RoomsListView

* Fix lint

* Fix listener
2019-05-03 11:54:57 -03:00
Diego Mello a243b1ccd7
Tweaks on sequential threads messages layout (#858)
* Tweaks on sequential threads messages

* Update tests

* Fix quote

* Prevent from deleting thread start message when positioned inside the thread

* Remove thread listener from RightButtons

* Fix error on thread start parse

* Stop parsing threads on render

* Check replied thread only if necessary

* Fix messages don't displaying

* Fix threads e2e

* RoomsListView.updateState slice

* Stop fetching hidden messages on threads

* Set initialNumToRender to 5
2019-05-03 10:33:38 -03:00
Diego Mello 61fcadc879
[FIX] Toggle/follow thread icon (#867) 2019-05-03 10:30:34 -03:00
Diego Mello d6ed1055ee
[FIX] Load local URL image (#871) 2019-05-03 10:29:56 -03:00
pranavpandey1998official 661e9eac01 Remove duplicated getRoleDescription function (#866) 2019-05-02 10:55:39 -03:00
Diego Mello 94e32368dd
Remove connection badge (#862)
* Connecting indicator on RoomsListView header

* Connecting indicator on RoomView header

* Remove ConnectionBadge

* Show updating on RoomView load messages
2019-04-30 16:31:51 -03:00
Diego Mello 44f3b7f1a9
Active users improvements (#855) 2019-04-29 13:03:52 -03:00
Diego Mello 75e4b86a95
Fetch roles from rest api (#853)
* Fetch roles from rest api

* Fix RoomInfoView role get

* Remove roles from redux
2019-04-26 18:15:25 -03:00
Diego Mello 5c1be71fa1
Update custom emojis endpoint (#852)
* Update emoji endpoint

* Use React.memo on Markdown

* Support RC versions lower than 0.75.0

* Realm migration
2019-04-26 18:13:07 -03:00
Diego Mello c340829638
Update fetch permissions api (#850) 2019-04-26 17:54:58 -03:00
Diego Mello c15fab7c84
Load legal pages from web (#849) 2019-04-26 17:51:09 -03:00
Diego Mello 2f25b10681
[Regression] Search stopped working on Android after LastMessage refactor (#851) 2019-04-26 09:14:30 -03:00
Diego Mello ee99001010
[FIX] Smaller thread title (#846)
* [FIX] Smaller thread title

* Remove markdown notation from thread title

* On message press debounce

* Align vertical thread title
2019-04-25 14:18:49 -03:00
Diego Mello 5744114d7d
[FIX] Threads (#838)
Closes #826
Closes #827
Closes #828
Closes #829
Closes #830
Closes #831
Closes #832
Closes #833
2019-04-24 15:36:29 -03:00
Diego Mello 0266cc2e01
Room item layout (#835) 2019-04-18 17:57:35 -03:00
Diego Mello 03adaa3f81
Lock drawer when stack is not on root screen (#825) 2019-04-18 10:43:44 -03:00
Diego Mello fb88d08f88
[FIX] Apply emojify on empty texts (#824) 2019-04-18 09:43:31 -03:00
kareem hamdy fde8aea173 [FIX] Giphy not showing (#810) 2019-04-17 16:27:14 -03:00
Diego Mello a891ee14ee
RoomsListView improvements (#819) 2019-04-17 15:57:46 -03:00
Diego Mello 9cf81bbab9
[NEW] Threads (#798) 2019-04-17 14:01:03 -03:00
Diego Sampaio 1d9acdb700 [NEW] Discussions (#696) 2019-04-08 09:35:28 -03:00
Diego Mello 2019ec58ce
[FIX] Add Realm.safeAddListener (#785) 2019-04-04 15:08:40 -03:00
pranavpandey1998official 46a36d7764 [NEW] Draft message per room (#772) 2019-04-01 11:45:17 -03:00
Diego Mello 9e107bfdf6
Room item layout (#771) 2019-03-29 16:36:07 -03:00
Diego Mello fd5fbe47e8
Use FlatList in RoomView (#762) 2019-03-27 17:06:57 -03:00
pranavpandey1998official 5771757fa8 [NEW] Scroll down floating button (#735) 2019-03-25 17:54:40 -03:00
pranavpandey1998official e9183b523b [NEW] Scrollable room name feature (#756) 2019-03-25 17:20:24 -03:00
pranavpandey1998official 2814a6e091 [FIX] Show ActivityIndicator in RoomMembersView (#686) 2019-03-18 16:13:59 -03:00
Vitor Luis e8f1a694c6 I18n: Add Portuguese (Portugal) (#722) 2019-03-18 16:09:40 -03:00
pranavpandey1998official e1f76a684d Fix handle invisible status (#692) 2019-03-18 16:01:23 -03:00
Diego Mello 477311f84a
[FIX] Deep linking between multiple logged servers (#730) 2019-03-18 15:52:38 -03:00
Diego Mello 38dabfc9ff
Switch to react-navigation (#687) 2019-03-12 13:23:06 -03:00
Diego Mello eb4b1553bf
[FIX] Fix null native Messagebox component object (#680)
* Fix null native Messagebox component object

* [iOS] Fix header alignment

* Remove unused files
2019-03-06 10:27:40 -03:00
Diego Mello a139cc83e5
New icons (#643)
* New Icons

* Remove unused assets

* Change send icon

* Layout tweaks

* Refactor Status

* Styles changed

* User layout fix

* Separator layout changes

* Sidebar status layout fix

* Fix Message.onLongPress issue

* Fix code markdown
Closes https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/625

* Status lint

* Fix tests

* Navigation debounce

* RoomActions icons

* Space between components

* Group text

* Update tests
2019-03-01 13:49:11 -03:00
AnBo83 8d94fdebc0 [FIX] Fix some language issues in German language (#664) 2019-03-01 11:57:38 -03:00
Diego Mello 8f5381d770
Update React Native to 0.58.6 (#668) 2019-03-01 11:40:22 -03:00
Diego Mello 09372182df
[FIX] Select emoji error (#666) 2019-02-28 15:03:26 -03:00
Diego Mello 6106c40557
[FIX] Fetch rooms date (#662) 2019-02-27 17:29:37 -03:00
Diego Mello 8c1b57eb26
Message button (#660)
* Remove touchable opacity when scrolling messages
* Tap on disable messages closes keyboard
* Unify vibration
* Vibrate only on Android
2019-02-27 11:47:15 -03:00
Diego Mello f3ddf60a57
Remove drawer (#653)
* Remove drawer (layout needs to be changed in future releases, though)
* Don't navigate outside on logout if there's other logged server
* Update react-native-navigation
2019-02-27 11:26:40 -03:00
Diego Mello 2ef2be51d3
[FIX] Slow messagebox (#658) 2019-02-27 11:23:40 -03:00
Diego Mello 025c5cba74
[FIX] uploadProgress is not a function (#656) 2019-02-26 09:47:06 -03:00
Diego Mello b1236f2f21
[FIX] Room members filter (#655) 2019-02-26 09:46:27 -03:00
Diego Mello e9f57e0337
[FIX] Change actions labels (#654) 2019-02-26 09:45:45 -03:00
Diego Mello df78a6831c
[FIX] Handle database errors properly (#650) 2019-02-25 13:23:17 -03:00
Diego Mello bf212bfc4d
[FIX] Prevent mass is typing dispatchs (#651) 2019-02-25 13:22:48 -03:00
AnBo83 a04c152feb I18n: Add German (#641) 2019-02-21 14:17:03 -03:00
Diego Mello d795aea8c4
[FIX] Remove rooms listener (#630) 2019-02-14 14:43:56 -02:00
Fazil Boudjelal ce96595dce I18n: Add French (#629) 2019-02-14 13:40:41 -02:00
Diego Mello 68f5a94f5a
[FIX] SDK issues (#621)
* Remove listeners from room
* Properly close connections on change server
* Minor layout change on connecting badge
2019-02-12 14:14:11 -02:00
Diego Mello 7bf1f3c0be
[FIX] Reply title should break text (#616) 2019-02-08 14:34:50 -02:00
Diego Mello f065bd05f2
Allow to create empty channel (#615) 2019-02-08 14:34:01 -02:00
Diego Mello c9bf599bcf
[FIX] Start loop searching for rooms updates only when connection goes down and SDK has userId (#613) 2019-02-07 18:28:39 -02:00
Diego Mello 833bf1e706
[FIX] 2FA login in a server with LDAP enabled (#612) 2019-02-07 18:27:37 -02:00
David Lougheed e5930cc0fe [FIX] Load avatar on servers that prevent unauthenticated avatar access (#604)
App would show an empty space on servers that require authentication on avatar access
2019-02-07 17:58:20 -02:00
Diego Mello db0cd5abd1
Updating room indicator (#609)
Shows "Updating..." when requesting rooms from Rest API.
2019-02-07 14:13:21 -02:00
Diego Mello 0f516083f4
Add Icons class (#611)
Creates Icons class to manage when to load icons from native side or react-native-vector-icons.
It also fixes `react-native run-android` #517
2019-02-07 14:04:41 -02:00
Diego Mello 2585038112
Update JS SDK version (#602) 2019-02-07 13:48:10 -02:00
Diego Mello d26f14d155
[FIX] v1.8.0 (#599)
* Downgrade react-native-fast-image

* Update iOS permission usage descriptions

* [FIX] Delete upload item
2019-02-01 11:30:12 -02:00
Diego Mello d5a285f85e
Create class to manage navigation (#594)
* Add Navigation class

* Place Drawer.js logic inside of Navigation

* Load less views at startup
2019-01-31 14:08:38 -02:00
David Lougheed d139782e01 [FIX] LDAP login (#596) 2019-01-31 09:48:28 -02:00
Diego Mello afe4ad7e3d
[FIX] Back button press on message actions (#592) 2019-01-30 11:33:48 -02:00
Pranay Ankit e416fe0c68 [FIX] Better message actions (#567) 2019-01-30 10:11:02 -02:00
Diego Mello 754508c2d9
Update dependencies (#587) 2019-01-29 17:52:56 -02:00
Diego Mello d23c055584
Unnecessary re-renders removed (#570)
* shouldComponentUpdate

* Rooms list shouldcomponentupdate

* RoomView shouldComponentUpdate

* Messagebox and Message shouldComponentUpdate

* EmojiPicker shouldComponentUpdate

* RoomActions shouldComponentUpdate

* Room info shouldComponentUpdate

* Update RNN

* Use only one Flatlist if none group filter is selected

* Update fix

* shouldComponentUpdate

* Bug fixes

* ListView changes

* Bug fix

* render list bug fix

* Changes on public channels

* - RoomView saga leak removed
- Join room e2e tests added

* Rest versions

* Method call versions

* Min RocketChat version alert
2018-12-21 08:55:35 -02:00
Diego Mello 5ee1f557d8
[FIX] GET /info to check if it's a valid server instead of x-instance-id (#573) 2018-12-18 13:11:47 -02:00
Diego Mello ad37586065
Use Rest API pt 2 (#568)
* Room files

* Pinned messages

* Starred messages

* Mentioned messages

* Search messages

* Bug fixes

* Profile

* Livechat

* Block/unblock user

* Erase room

* Archive room

* Remove unused method

* Bug fix
2018-12-12 13:15:10 -02:00
Diego Mello dca2181b2c
[FIX] Load messages on notification tap (#564) 2018-12-07 15:47:50 -02:00
Diego Mello 17da7ac09c
Chats: Don't show group header if none of the filters is selected (#560) 2018-12-06 10:53:20 -02:00
Diego Mello a2821af95b
Use Rest API calls (#558) 2018-12-05 18:52:08 -02:00
diegolmello bef34f7f96 [FIX] x-instance-id header prop is case insensitive 2018-11-28 10:10:22 -02:00
Diego Mello 4bc54f10e0
[FIX] x-instance-id header prop is case insensitive (#551) 2018-11-27 18:25:00 -02:00
Diego Mello e66dbd8ca3
[FIX] Android stuck on splash screen after hardware back button is pressed (#550)
* [FIX] Android stuck on splash screen after hardware button is pressed

* Fix empty user at asyncstorage

* Remove unused subscribe
2018-11-27 17:40:53 -02:00
Diego Mello 35fac39594
Regression: Deep linking stopped working after react-native-navigation update (#549) 2018-11-22 16:54:38 -02:00
achilles-kosun 50cf3cea59 I18n: Add missing translation of simplified Chinese (#539) 2018-11-20 09:48:50 -02:00
Diego Mello 2692f5222d
[FIX] Upload buttons on Android (#541) 2018-11-19 16:18:15 -02:00
Diego Mello f13d7ed631
DDP Connection badge animation changed (#533) 2018-11-16 09:07:13 -02:00
Diego Mello e9deb577e0
Regression: Resend messages with error (#532) 2018-11-16 09:06:29 -02:00
Diego Mello c6fcfb63fd
[WIP] New Authentication layout (#536)
New Authentication layout
2018-11-14 19:42:03 -02:00
Diego Mello fc1796e098
[FIX] Composer composer's send icon slowness (#528) 2018-11-05 17:03:17 -02:00
Diego Mello 0dd4899789
[FIX] Dismiss keyboard on room close (#530) 2018-11-05 17:02:54 -02:00
Diego Mello 461f865656
[FIX] Room view header crashes when destructuring reducer (#523) 2018-11-05 10:00:58 -02:00
Diego Mello 1c9aa9bf33
[FIX] App connects to previous server instead of the recent added (#518) 2018-10-31 15:41:56 -03:00
Diego Mello e7277be004
[FIX] Flashing avatars on Android after #512 (#519) 2018-10-31 15:41:19 -03:00
Diego Mello afb2e6fd92
Clear iOS notification on resume/open (#520) 2018-10-31 15:40:39 -03:00
Diego Mello ba9cc637d3
[NEW] Room header layout (#521) 2018-10-31 15:40:08 -03:00
Diego Mello 29b74133d4
Fix iOS pop gesture and open sidemenu gesture (#511) 2018-10-29 10:54:23 -03:00
Diego Mello 6dde0f2432
Fetch avatar initials from server (#512) 2018-10-29 10:53:32 -03:00
Diego Mello 11e94b9017
[FIX] Messages not being loaded properly (#513) 2018-10-29 10:52:44 -03:00
Diego Mello 53014ce022
Check if lastMessage has an attachment and show "User sent an attachment" at RoomsList (#510) 2018-10-26 10:24:00 -03:00
Diego Mello 6657ad272e
[FIX] iOS pop gesture not working properly (#509) 2018-10-25 16:27:11 -03:00
achilles-kosun eb93df853a [I18n] Add Simplified Chinese(zh-CN) locale (#505) 2018-10-24 16:10:44 -03:00
Diego Mello 402403f964
Update navigation library (#501)
* v2

* Working on Android 0.57.3

* Drawer working

* Removing v1 navigator

* - Splash screen
- Icons changed

* Deeplink

* Remove EventEmitter from CreateChannelView

* Android search

* Android notifications

* OAuth

* Fix search props

* Lint and tests fixed

* Fix android build

* Improvements on iPhone X* usage

* Fix detox

* Fix android build

* Room.f added to RoomView.shouldComponentUpdate

* Animations on RoomsListView and RoomView

* Fix topbar buttons on Android
2018-10-23 18:39:48 -03:00
Diego Mello ed1988d64d
[FIX] Logout (#497)
* [FIX] Logout

* Removed realm instances on rooms list
2018-10-18 14:56:49 -03:00
Diego Mello abc61342b0
Smaller header icons inside the room (#499) 2018-10-18 14:56:15 -03:00
Diego Mello 158df06d5c
[FIX] OAuth (#496) 2018-10-18 12:47:29 -03:00
Diego Mello 5ea7d49654
Regression: Crash on Android search (#492) 2018-10-17 13:30:00 -03:00
Diego Mello f8b402e505
Regression: Wait for unmount to delete database after logout (#489) 2018-10-17 09:31:24 -03:00
Diego Mello 44fcb327cf
[FIX] Delete room error (#485) 2018-10-16 17:30:04 -03:00
Diego Mello bb8649cac4
Use grouping setting on temp messages (#486) 2018-10-16 17:29:30 -03:00
Diego Mello e4faa73b68
[FIX] Unread rooms group order (#487) 2018-10-16 17:28:04 -03:00
Diego Mello 7dfd57b20c
[FIX] 2FA and LDAP (#488) 2018-10-16 17:27:37 -03:00
Diego Mello 5a3ba40a9f
Use Rocket.Chat JS SDK (#481)
* JS SDK

* API working

* Multiple servers
2018-10-15 17:22:42 -03:00
Diego Mello 8db5723da8
[FIX] DDP badge wasn't hiding on fast connections (#477) 2018-10-15 16:42:23 -03:00
Marcelo Schmidt 3502d4514b Display custom fields on user info (#476)
* Render custom fields on user info

* renderCustomFields fix

* Display custom fields in user info

* Fix lint error
2018-10-15 16:41:39 -03:00
Diego Mello 2d7360f077
Connecting to DDP badge (#471) 2018-10-02 09:33:21 -03:00
Diego Mello 2642a9e808
[FIX] Search rooms (#468) 2018-09-28 17:17:49 -03:00
Diego Mello d5a4ead888
[FIX] Handle deleted messages (#466)
* [FIX] Handle deleted messages

* Fix rest error

* Fix some connection issues
2018-09-28 15:57:29 -03:00
Diego Mello d6c6ac4ae8
Composer layout tweaked (#464)
* Composer layout tweaked

* Fix localization error

* Bump version to 1.3.2
2018-09-27 08:43:19 -03:00
Diego Mello d6162d9fc8
Better touch handling on rooms list (#462)
* Use react-native-gesture-handler at RoomItem

* Fixed info message author

* Edit message render improvement

* Fix ws to http replace
2018-09-26 16:38:06 -03:00
Diego Mello e18491f589
Use inline requires (#459)
* Update dependencies

* Lint and test

* Added react-native fork

* rn 57

* Lint and tests updated

* Update xcode on circleci

* Use legacy build system

* Update tests

* Inline requires

* Fix eslint and remove temp gradle

* Unnecessary renders

* Update isNotch and Readme

* Tests updated
2018-09-26 10:56:36 -03:00
Diego Mello 81c53acd60
Update dependencies (#431)
* Update dependencies

* Lint and test

* Added react-native fork

* rn 57

* Lint and tests updated

* Update xcode on circleci

* Use legacy build system

* Update tests
2018-09-25 16:28:42 -03:00
Diego Mello e06ba0139d
[NEW] Portuguese translation (#452)
* [NEW] Portuguese translation

* Remove servers from sidebar
2018-09-21 14:24:32 -03:00
Diego Mello 9c007c11b7
[NEW] Show app version (#454) 2018-09-21 14:24:15 -03:00
Diego Mello 46f155d728
[NEW] Use community JSC for Android (#450)
* [NEW] Use community JSC for Android

* Quick fix on unread chats
2018-09-19 14:08:41 -03:00
Diego Mello 5752b865b0
Several fixes for 1.2.1 (#448)
* Fix user.roles

* Better onLongPress handle on messages

* Indicator position

* Fix role undefined in system messages

* Add baseUrl in case of file attachments

* Join room fixed

* RoomView params

* Broadcast fixes

* Add server layout changes

* Use native images

* Subscribe to not joined channels

* Fix alerts without i18n

* Tests updated
2018-09-19 11:18:32 -03:00
Diego Mello 4c19de9433
Avoid errors on Audio/Image/Video (#443) 2018-09-14 16:39:52 -03:00
Diego Mello 849de55604
[FIX] Drawer navigation won't refresh chats (#432) 2018-09-13 17:40:03 -03:00
Diego Mello 96d0b1fcbc
[NEW] Message layout (#426)
* message container/component

* Separator component

* Reply

* Url

* tests updated

* Minor changes

* Audio component

* Broadcast button

* Minor touches

* Reply preview

* Edited

* Minor bug fixes

* - Update roadmap
- Bump version to 1.2

* Onboarding styles fix
2018-09-11 13:32:52 -03:00
Diego Mello 92cedf76c1
[FIX] Missing current server (#427)
* server.current removed

* Increased area of touch on header

* Hide search when sort dropdown is tapped

* default server icon url

* 1.1.1
2018-09-05 15:15:03 -03:00
Diego Mello 101d4c727c
Sort/group rooms local only (#425)
* Update android api from ci

* Sort local only
2018-09-04 11:29:20 -03:00
Diego Mello e1952ca146
[FIX] Open unsupported videos on browser (#422) 2018-08-31 15:15:05 -03:00
Diego Mello de1a63c815
[NEW] Create channel layout (#420)
* RoomsListView layout

* Rooms list layout

* Sort component

* Header icons

* Default header colors

* Add server dropdown

* Close sort dropdown if server dropdown will open

* UserItem

* Room type icon

* Search working

* Tests updated

* Android layout

* Using realm queries instead of array iterates

* Animation duration

* Fixed render bug

* - NewMessageView
- backButtonTitle always empty
- SearchBox created

* New create channel layout

* Search refactored

* loginSuccess dismiss modal

* Tests working
2018-08-31 15:13:30 -03:00
Diego Mello dc6d60b28e
[NEW] Rooms list layout (#413)
* RoomsListView layout

* Rooms list layout

* Sort component

* Header icons

* Default header colors

* Add server dropdown

* Close sort dropdown if server dropdown will open

* UserItem

* Room type icon

* Search working

* Tests updated

* Android layout

* Using realm queries instead of array iterates

* Animation duration

* Fixed render bug
2018-08-31 13:46:33 -03:00
Diego Mello 9f9a9b71a4 [FIX] Only single attachment rendered (#417) 2018-08-21 16:37:15 -03:00
Diego Mello 91025e9d03 [NEW] Onboarding (#407)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
Closes #392 

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
![aug-07-2018 17-03-50](https://user-images.githubusercontent.com/804994/43799447-f62074dc-9a63-11e8-8aac-bf2c4c5a8a2b.gif)
![aug-07-2018 17-03-35](https://user-images.githubusercontent.com/804994/43799446-f5f84a70-9a63-11e8-8947-265113ae9bf4.gif)
![aug-07-2018 17-03-13](https://user-images.githubusercontent.com/804994/43799445-f5d70ee6-9a63-11e8-94a9-f49c7d69fbba.gif)
2018-08-10 14:26:36 -03:00
Diego Mello c3994051d5 [NEW] Empty room background (#412)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
Closes #398 

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
![aug-09-2018 11-35-32](https://user-images.githubusercontent.com/804994/43906080-cbfadf92-9bc8-11e8-9ac9-44f43d3af023.gif)
![aug-09-2018 11-35-16](https://user-images.githubusercontent.com/804994/43906082-cc19411c-9bc8-11e8-9892-c65c86951a91.gif)
![image](https://user-images.githubusercontent.com/804994/43911366-ad830cd0-9bd5-11e8-8913-6a7e87a2206c.png)
2018-08-10 10:17:45 -03:00
Diego Mello 50eb03589a Improve RoomsList render time (#384)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
- [x] Added FlatList.getItemLayout() to improve list render time
- [x] Some texts were breaking lines at sidebar
- [x] Removed onPress from links at RoomsListView
- [x] Added eslint rule to prevent unused styles
- [x] Fixed auto focus bug at CreateChannel and NewServer
- [x] Fix change server bug
- [x] Fixed a bug when resuming in ListServer
- [x] I18n fixed
- [x] Fixed a bug on actionsheet ref not being created
- [x] Reply wasn't showing on Android
- [x] Use Notification.Builder.setColor/getColor only after Android SDK 23
- [x] Listen to app state only when inside app
- [x] Switched register push token position in order to improve login performance
- [x] When deep link changes server, it doesn't refresh rooms list
- [x] Added SafeAreaView in all views to improve iPhone X experience
- [x] Subpath regex #388
2018-08-01 16:35:06 -03:00
Pitstopper ccaf5413f2 [I18N] Russian translation (#381)
[I18N] Russian translation file
2018-07-25 10:14:12 -03:00
Diego Mello 94c7d9e8cc [FIX] Close websocket (#379)
* Fixed a bug when closing websocket

* removeListener fixed
2018-07-24 19:29:07 -03:00
Diego Mello 8322e7e576 [NEW] Reply preview (#374)
* Updated to React Native 0.56

* Reply Preview
2018-07-20 16:54:46 -03:00
Diego Mello 077c29503e [FIX] Empty room name for livechat (#375)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
Closes #320 
Closes #209 

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
2018-07-20 16:54:20 -03:00
Diego Mello 53ceaf858b [NEW] Room Loading(#372)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
2018-07-18 17:34:59 -03:00
Diego Mello 2e245e4d7c Image upload improvements (#368)
<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
- [x] Crop image
- [x] Type image description (like web)
- [x] Show upload progress
- [x] "Try again" in case of error
- [x] Cancel upload while in progress
- [x] [Android] Zoom on photos

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
![image](https://user-images.githubusercontent.com/804994/42526934-a12da304-844d-11e8-8668-f3d69369726a.png)
![image](https://user-images.githubusercontent.com/804994/42527829-297945fe-8450-11e8-9f0e-9e668dd33043.png)
2018-07-17 16:10:27 -03:00