Commit graph

65 commits

Author SHA1 Message Date
Elias Nahum
3feaa8e6bb
iOS Native Share Extension (Swift) (#2575)
* iOS Native Share Extension (Swift)

* Re-arrange files

* Fix .gitignore
2019-02-26 14:31:57 -03:00
Elias Nahum
2ec7a6bba6
MM-13859 set the auth token when fetching images from the server (#2537)
* MM-13859 set the auth token when fetching images from the server

* set the image_cache siteURL from redux

* HH suggestion

Co-Authored-By: enahum <nahumhbl@gmail.com>

* Removing comment
2019-02-01 19:38:04 -03:00
Elias Nahum
c8777422ce
Fix network indicator layout and reconnect logic (#2351)
* Fix network indicator layout and reconnect logic

* Reconnection logic to cover more use cases

* Check for internet connectivity when bringing the app to the foreground
2018-11-22 10:25:08 -03:00
Elias Nahum
9a5122c19c
Slide up panel for reaction list (#2285)
* Slide up panel for reaction list

* Feedback review

* UI Feedback review

* Feedback review

* Improve slide speed and fix end position

* Scroll to top when changing reaction view

* dismiss modal without animation so backdrop does not scroll down

* Smooth animation to show/hide

* Change animation speed
2018-11-02 13:21:43 -03:00
Elias Nahum
9db040bcf7
Retry fetching teams if no teams are found (#2288)
* Retry fetching teams if no teams are found

* Remove flow
2018-10-27 00:50:19 -03:00
Harrison Healey
926856f9a5
MM-11477 Use custom thunk middleware to intercept leaked network errors (#2222)
* MM-11477 Use custom thunk middleware to intercept leaked network errors

* MM-11477 Always include url in Client4 errors

* Update redux
2018-10-09 10:13:28 -04:00
Sudheer
5aac68e785 Change rn-fetch-blob to mock globally in jest (#2124) 2018-09-14 12:14:37 -03:00
Elias Nahum
96e9c6c707 Update rn-fetch-blob and CBA support for iOS (#2033)
* Update rn-fetch-blob and CBA support for iOS

* remove trusty

* remove react-native-fast-image dependency
2018-08-29 14:01:37 -04:00
Chris Duarte
68847d91a0 Keep server version after cache clear (#2042) 2018-08-29 23:15:28 +05:30
Elias Nahum
01792f2b54
Handle bad state (#1903)
* Upgrade mattermost-redux

* Check if url start with http before pinging

* Remove required status prop in settings sidebar

* Prevent the app to get into a bad state and if that happens try and recover
2018-07-09 18:33:13 -04:00
Harrison Healey
3633206204 Remember announcement banner dismissal after app closes (#1867) 2018-07-04 06:55:01 +08:00
Elias Nahum
07367aa802
Merge branch 'release-1.9' into merge-1.9 2018-07-03 11:24:02 -04:00
Elias Nahum
8c066e0ba3 Attempt to fix some crashes (#1860)
* Attempt to fix some crashes

* remove unnecessary shareExtensionData middleware
2018-07-03 10:14:55 -04:00
Elias Nahum
7b18047800
CBA support for iOS (#1767)
* CBA Support

* cba support for iOS Share extension

* Autologin with credentials

* Set initial config for ExperimentalClientSideCertEnable as false

* Fix mattermost-redux to cba branch

* feedback review

* Fix eslint
2018-06-19 19:35:42 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Elias Nahum
27b68c74dc
Fix roles Set issue and update device-info to not cache appVersion (#1753) 2018-06-08 17:42:04 -04:00
Elias Nahum
2dcf718f81
Fix iOS type error warnings (#1737) 2018-06-07 15:58:04 -04:00
Elias Nahum
43cf9b5294
Fix change team and channel in iOS share extension (#1727) 2018-06-06 13:00:53 -04:00
Elias Nahum
c171ae4809
Enable Android Unbundle strategy (perf part 2) (#1700)
* Enable Android Unbundle strategy

* feedback review

* Update modulePaths

* Add npm start and use it in the Makefile

* feedback review #2
2018-05-23 13:23:38 -04:00
Jesse Hallam
210b3512b1 MM-10460: avoid double post on restore (#1667)
* add test to messageRetention to verify outgoing action type

* ensure messageRetention passes the original action type through

* fix linting issues
2018-05-15 11:39:35 -04:00
Jesús Espino
f4d1294ae0 MM-10454: Adding roles to the cleanup middleware (#1661) 2018-05-14 09:12:29 -04:00
Elias Nahum
484a5a11f9 Flagged Posts and Recent Mentions (#1584)
* Fix reply count in post header

* Make channel loader to trigger manually

* post list selector for search

* Include date separators in search results

* Flagged posts

* Recent Mentions

* Retry option for flagged posts and recent mentions

* feedback review

* Update mattermost-redux
2018-04-13 10:26:37 -04:00
Elias Nahum
78d223b611
Fix posts in thread (#1572)
* Fix posts in thread

* include postsInThread in initial state
2018-04-05 23:13:07 +03:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
Joram Wilander
84a2a0fab8
ABC-123 Add handling for loading custom emojis asynchronously (#1406)
* Add async handling of custom emoji to posts and channel info

* Add server request to emoji autocomplete

* Add custom emoji paging and server search to emoji picker

* Fix android

* Update mattermost-redux and revert temp change

* Backwards compatibility fixes

* Updates per feedback

* Set server version when user is not logged in

* Reset section index when search is cleared or cancelled

* Some small fixes and upgrade mattermost-redux

* Minor sorting changes
2018-02-15 17:38:45 -05:00
enahum
7f02889efc Add defensive code for pendingPostIds (#1435) 2018-02-15 17:36:57 -05:00
enahum
27c764d288 [ICU-579] Display Announcement banner (#1428)
* Announcement banner

* Feedback review
2018-02-13 10:23:11 -05:00
enahum
b53f3988b8 [ICU-680] Fix Duplicate posts (#1430) 2018-02-12 14:44:34 -05:00
enahum
439131578a
Fix emoji sizes (#1423)
* Fix emoji sizes

* Blacklist nonExistentEmoji
2018-02-07 17:55:55 -03:00
Elias Nahum
c4ad99d2b8
Merge branch 'release-1.6' 2018-02-02 19:23:48 -03:00
enahum
89e0623e6e Improvements on iOS Share Extension (#1407)
* Improvements on iOS Share Extension

* Switch NSUserDefaults with a file based solution

* create a new entities object instead of mutating

* Clarify the function for requiring emm authentication

* ensure entities is not a shallow copy
2018-02-02 16:48:09 -05:00
Harrison Healey
a6d9632cad
ICU-562 Explicitly store whether or not 'load more posts' should be visible (#1379) 2018-01-26 11:29:28 -05:00
enahum
926ffe96c5
Android share extension (#1352)
* Android share extension

* Feedback review

* Feedback review
2018-01-17 18:17:02 -03:00
enahum
70c4e3e005
iOS Share Extension (#1308)
* objective-C share extension

* MattermostBucket module to share data between the main app and the extension

* middleware that shares the data between the main app and the extension

* Fix setState when safe area in unmounted

* Share extension for iOS

* Fastlane changes to include iOS share extension

* Fix unit test

* Feedback review

* define proptypes for icons
2018-01-15 16:11:42 -03:00
Harrison Healey
84fdc24bc5 RN-523 Added a try-catch when cleaning up state following a rehydrate (#1342) 2018-01-09 07:56:42 -08:00
Chris Duarte
7fdb0c4d27 Create post timeout (#1242)
* Add timeout for api calls that take too long

This will allow any api call that takes too long to fail faster.

Specially for Client4.createPost.  If the api never returns the post is in a pending state and the user is not able to retry.

* Add canTimeout flag
2017-12-08 18:19:17 -03:00
Chris Duarte
e345ee1e7b Add recently used section (#1136)
* Add recently used section and section icons

* Improve section scrolling indication

* Modify Makefile and use onMomentumScrollEnd

* Make sure top section maintains highlight when scrolled to top

* Sort emojis by startsWith then includes when filtering
2017-11-21 10:20:09 -05:00
enahum
073ddc9d44 Keep search results on data cleanup (#1147) 2017-11-15 09:52:25 -05:00
enahum
5fb9390759
IOS Version Bump to 64 (#1142)
* Update Mattermost redux (#1086)

* Fix middleware

* Upgrade mattermost-redux

* another middleware fix

* Bump app version to 1.4.1

* Version Bump to 64
2017-11-14 11:06:18 -03:00
enahum
b7fe369fab
Apply data retention policy (#1122) 2017-11-12 08:33:42 -03:00
Harrison Healey
e18aea8f9a RN-474 Fixed resetStateForNewVersion not working if upgrading from version without search state (#1117) 2017-11-09 12:47:21 -03:00
Elias Nahum
c8e7c2deb1 Keep post openGraph data 2017-11-06 14:29:02 -03:00
enahum
7c8f735b3b
Merge Build 62 into master (#1090)
* Use ImageBackground for youtube videos instead of nested Images

* Fix bugs reported by sentry (#1081)

* Update Mattermost redux (#1086)

* Fix middleware

* Upgrade mattermost-redux

* another middleware fix

* RN-456 when a channel is left we update content and title (#1087)

* Version Bump to 62 (#1088)

* Version Bump to 62 (#1089)
2017-11-02 17:53:20 -03:00
enahum
da461ca35d Keep user statuses for current channel and all post visibilities (#1080) 2017-11-02 08:37:08 -03:00
enahum
2641ec96fb Perform validations to avoid crash on data cleanup (#1075)
* Perform validations to avoid crash on data cleanup

* Remove postId from postsInChannel
2017-11-02 08:37:08 -03:00
enahum
3fdfe92800 Data cleanup (#1070)
* Add message retention middleware and config

* Data cleanup middleware
2017-10-30 11:23:19 -04:00
Chris Duarte
e49f89d727 Add better network detection (#1054)
* Add better network detection

* Mock NetInfo for store
2017-10-24 19:43:22 -03:00
enahum
dabad3eca6 Improving Performance Part 1 (#1009)
* Dispatch retry failed action | fix refreshing state | change postVisibility to 15

* Improve channel switching

* Improve handling of visible tooltip

* Improve watching for status bar height changes

* Remove unnecessary mapStateToProps from code screen

* Use drawer native functions to open/close instead of state

* Feedback review
2017-10-11 14:33:26 -03:00
Harrison Healey
61b80e10ba RN-379 Get posts since last websocket disconnect when viewing channel (#971)
* RN-379 Added websocket state to device state

* Fixed view store blacklist

* RN-379 Get posts since last websocket disconnect when viewing channel

* Used Date.now instead of new Date().getTime()
2017-10-02 16:03:13 -03:00
enahum
fb773f04cb Multiple performance improvements (#956)
* Update fastlane

* Multiple performance improvements

* Feedback review

* Feedback review
2017-10-02 16:03:13 -03:00