Amit Uttam
0f70af7b16
MM-15469 (Android) Alert if shared text is longer than message limit ( #3264 )
...
* MM-15469 Alert if shared text is longer than message limit
One can't manually enter text into the share extension's text box past 4000 characters (the default/defined text size limit). However, this restriction can still be circumvented by sharing a large item of text. In this latter case, the textarea displays just the first 4000 characters, but the value buffer still contains the entire shared text. On hitting "Send", the oversize text can still be shared.
This commit implements [MM-15469](https://mattermost.atlassian.net/browse/MM-15469 ) to better align the Android sharing user experience with the iOS experience.
Since a pre-existing i18n string was used, no additional translations are required.
Fixes https://github.com/mattermost/mattermost-server/issues/11431
* Add available characters remaining counter in Android Share textarea
Shows number of available characters remaining until textarea limit (default
= 4000). Similar to iOS experience.
**iOS (normal)**

**Android (normal)**

**iOS (past limit)**

**Android (past limit)**

* Don't limit size of Android Share extension text input box
Pasted shared text was getting cut off after hitting the `MAX_MESSAGE_LENGTH` for shared posts. Alert validation now checks this limit before allowing content to be posted, which made the `maxLength` limit redundant.
Context: https://github.com/mattermost/mattermost-mobile/pull/3264#issuecomment-540962933
2019-10-16 09:51:06 +03:00
Harrison Healey
3e0189430b
MM-18762 Remove some usage of deprecated lifecycle methods ( #3299 )
...
* MM-18762 Remove some usage of deprecated lifecycle methods
* Only load ProgressiveImage when a URI changes
2019-09-27 09:16:21 -04:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Amit Uttam
1f88356557
Expand text input area in Android Share extension to use available space ( #3262 )
2019-09-16 12:03:20 -07:00
Elias Nahum
89b96d51db
MM-16430 refactor app entry point ( #2924 )
...
* MM-16430 refactor app entry point
* iOS Extensions to use session token from KeyChain
* Remove token from general credentials entity
* Fix mattermost-managed.ios to return the cachedConfig
* Migrate server based keychain for android push notifications
* remove unneeded async
* Remove unneeded android InitializationModule
2019-06-26 15:21:20 -04:00
Elias Nahum
c3c3d85248
MM-16095 Android share extension to use keychain for authentication ( #2876 )
...
* MM-16095 Android share extension to use keychain for authentication
* Remove unnecessary comment
2019-06-15 14:13:54 -04:00
Harrison Healey
6e099d6a21
MM-15643 Send user to settings when passcode is required ( #2836 )
...
* MM-15643 Send user to settings when passcode is required
* Allow access to the managed config in the iOS extensions
2019-05-27 19:38:32 -04:00
Elias Nahum
bbfd6e820f
Fix select default channel ( #2800 )
...
* Fix select default channel
* use utility with channels in team object
* feedback review
* update mattermost-redux
2019-05-16 20:02:19 -04:00
Joram Wilander
189d2eb607
Update mattermost-redux ( #2775 )
2019-05-07 15:52:11 -07:00
Elias Nahum
5183bc4b50
MM-15215 fix crash caused by malformed post textbox localize string
2019-04-18 18:24:36 -04:00
Jesús Espino
c769b536ae
Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user ( #2674 )
...
* Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user
* upgrading to the last mattermost-redux version
2019-04-16 23:34:02 +02:00
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
88f5848850
Dependencies update ( #2576 )
...
* Dependencies update
* Fix WebView
* Update to RN 0.58.5 and include the WebSocket fix
* Update react-native-video
* Fix RNFetchBlob
2019-02-20 17:17:04 -03:00
Sudheer
d627f96589
MM-13866 Never ending loader if app is un authenticated ( #2539 )
...
* if token or url is not present setState of loaded flag to true
2019-01-31 20:12:25 +05:30
Elias Nahum
3b1138f297
MM-13358 iOS Share extension channel list ( #2429 )
2018-12-10 09:15:37 -03:00
Elias Nahum
2f532182e5
Android extension channel list to display all items ( #2426 )
2018-12-07 01:12:18 -03:00
Elias Nahum
d5a9a058bb
Fetch team channels on extension init ( #2383 )
2018-11-27 19:45:44 -03:00
Elias Nahum
10e149a15d
Re-use app redux store to avoid conflicts ( #2362 )
2018-11-21 13:05:28 -03:00
Chris Duarte
5c24375dae
Reorganize sidebar channel items via pref ( #1928 )
...
* Reorganize sidebar channel items via pref
Add onItemPress
Add isModal prop
Add options modal for ungrouped sidebar
Filter zero item unreads from sections
Refactor unread filtering
Add SidebarSectionTypes to constants
Update mm-redux dep
Remove unused variable
* Fix lint errors. Update redux commit
* Add recent activity title
* Review feedback
* Fix issues after rebase
* Review feedback
* Change to use getAllDirectChannels
* Update redux library
* Fix lint error
* Update modal list snapshot
2018-11-09 13:06:21 -03:00
Harrison Healey
cfb372f75a
MM-11157 Switch ESLint to use eslint-config-mattermost ( #2247 )
2018-10-11 13:35:25 -04:00
Elias Nahum
b20e976dff
Properly handle max file size ( #2248 )
...
* Properly handle max file size
* Feedback review
2018-10-11 14:11:05 -03:00
Powhu Yang
e7d49d9267
Fix iOS Share Extension crashes ( #2242 )
2018-10-11 01:27:02 +05:30
Elias Nahum
637ca9244a
Update RN to version 0.57.0 ( #2131 )
2018-09-20 19:05:41 -03:00
Saturnino Abril
0afdbdd0f9
remove backgroundColor from styles.video of Android share extension that's causing app to crash ( #2119 )
2018-09-14 09:10:10 -03:00
Jesús Espino
1456c7cf29
MM-11718: Show only non-archived channels on Share ( #2059 )
2018-08-30 14:37:36 -04: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
Elias Nahum
1ec8dd4577
Fix video playback when filename contains spaces ( #1997 )
...
* Fix video playback when filename contains spaces
* Feedback review
2018-08-13 10:19:29 -03:00
Elias Nahum
cf85c3c1e8
Fix Android share extension and better handle errors ( #1965 )
2018-08-03 13:18:21 -04:00
Chris Duarte
ca2b4b2b3d
Pull share extension title from i18n ( #1931 )
...
* Pull share extension title from i18n
* Reuse current i18n id.
* Remove unused i18n key
2018-07-17 19:50:05 -04:00
Elias Nahum
40c7d9cb07
Add defensive code to prevent extension from not working ( #1872 )
2018-07-04 07:03:58 +08:00
Harrison Healey
dee530cce7
MM-11116 Re-added updated QuickTextInput component to work around RN issue ( #1859 )
2018-07-02 09:09:31 -04:00
Elias Nahum
5d12387d3b
Fix ios extension crash and ability to share from files app ( #1852 )
...
MM-11098 Fix ios extension crash and ability to share from files app
2018-06-29 16:36:42 -04:00
Elias Nahum
aade1f0e35
Merge branch 'release-1.9' into merge-1.9
2018-06-27 18:17:44 -04:00
Elias Nahum
ad12b11f85
Fix android extension search ( #1842 )
2018-06-27 13:15:06 -04:00
Elias Nahum
5680988590
Fix iOS Share extension crash ( #1832 )
2018-06-27 09:23:47 -04:00
Martin Kraft
3bde858a64
MM-10717: Update longpress buttons when add reaction, edit post, or d… ( #1779 )
...
* MM-10717: Update longpress buttons when add reaction, edit post, or delete post permissions change.
* MM-10717: Makes tooltip actions prop required.
* MM-10717: Switches all direct access of 'config' and 'license' to use selectors.
2018-06-21 08:43:17 -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
e3e2456ecd
Fix android share extension channel switching and searching
2018-06-08 15:25:00 -04:00
Elias Nahum
8e0d167f95
Fix push notification and emm race conditions ( #1691 )
...
* Fix push notification and emm race conditions
* feedback review
* Removed unnecesary code
2018-05-22 11:02:14 -04:00
Elias Nahum
0d92c61a41
Cache team icon and set background to always be white ( #1669 )
2018-05-11 18:05:16 -03:00
Elias Nahum
aebe22f58d
Fix Android sharing files without extension ( #1646 )
2018-04-30 11:57:24 -03:00
Chris Duarte
d9f2bca9c0
Share ext error ( #1587 )
...
* Wrap iOS share extension in error boundary component
* Wrap Android share extension in error boundary component
* Review feedback
2018-04-17 15:23:37 -04:00
Chris Duarte
d6ee97c0c7
Show FlatList when searching in More DM Screen ( #1546 )
...
* Set searchbars to autoCapitalize='none'
* Show flatlist when searching profiles for more dms
* Fix lint errors
2018-04-13 09:03:02 -03:00
Elias Nahum
6698dbf678
Upgrade to RN 0.54.3 and other dependencies ( #1539 )
...
* Upgrade to RN 0.54.2 and other dependencies
* feedback review
* upgrade mattermost-redux
* Update dependencies
2018-03-29 10:05:49 -04:00
Elias Nahum
16ccfab7f6
Fix iOS Share Extension Crash and Bump build and version numbers (master) ( #1557 )
...
* Fix iOS Extension crash
* Bump app version to 1.7.1 and build to 92
2018-03-29 09:13:27 -04:00
Elias Nahum
040dc00c94
Fix team_icon to reference the pure component ( #1507 )
...
* Fix team_icon to reference the pure component
* Fix team icon in Android extension
* Fix team icon in select team screen
* Fix team switch divider in channel drawer
2018-03-16 17:45:06 +02:00
Harrison Healey
e300ed5c88
Replaced occurances of wrapWithPreventDoubleTap with preventDoubleTap ( #1499 )
2018-03-14 00:14:35 +08:00
Christian Hoff
98fee5e473
PLT-7567: Integration of Team Icons ( #1470 )
...
* PLT-7567: Integration of team icons in
channel drawer teams, switch team button, team selection, os share extenions
* PLT-7567: adopt updated eslint changes
* PLT-7567: Component for team icon display, refactoring
* PLT-7567: removed redundant styles
* PLT-7567: redux connected component for team icon, error handling
2018-03-06 20:39:24 +00:00
enahum
db5339e7f6
[MM-9559] use NSURLSessionUploadTask with the new files endpoint in iOS Share Extension ( #1458 )
2018-02-23 09:56:27 -05:00