Commit Graph

2197 Commits

Author SHA1 Message Date
Elias Nahum
dfd011aebc MM-15428 Fix iOS when managed config is not set (#2768) 2019-05-03 20:19:15 -07:00
Miguel Alatzar
7859b85391 Use numbered capture over named capture (#2765) 2019-05-03 13:19:17 -07:00
Miguel Alatzar
440ca4ed24 Bump app build number to 189 (#2764) 2019-05-03 10:39:16 -07:00
Elias Nahum
f49c2b430c Handle postIds null or undefined in channel_post_list (#2760)
* Handle postIds null or undefined in channel_post_list

* Update unit tests
2019-05-03 09:40:10 -07:00
Miguel Alatzar
5c654364c1 [MM-15401] Fix setting of extension when caching files (#2762)
* Get extension from Content-Disposition first

* User ImageCacheManager.cache over getCacheFile

* Add unit tests for ImageCacheManager.getCacheFile

* Add unit tests for ImageCacheManager.cache

* Use exports and require to be able to mock isDownloading

* Chain mockReturnValueOnce calls

* Fix getExtensionFromContentDisposition and its unit tests
2019-05-03 09:28:29 -07:00
Elias Nahum
584efe2b12 Use of cached managed config in components (#2758) 2019-05-01 18:39:20 -04:00
Elias Nahum
55d029bde3 fix mattermostManaged event name (#2754) 2019-05-01 18:37:30 -04:00
Elias Nahum
783e72a8d0 Remove the RN bridge from MattermostManaged (#2741)
* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners
2019-05-01 18:37:01 -04:00
Harrison Healey
0764523b92 MM-15284 Disable allowBackup on Android (#2756) 2019-05-01 09:39:21 -04:00
Harrison Healey
839b21a3b3 MM-14030 Don't show large gifs in posts (#2750)
* MM-14030 Don't show large gifs in posts

* Re-add default argument
2019-05-01 09:35:05 -04:00
Elias Nahum
212f2f5db6 translations PR 20190429 (#2751) 2019-04-30 13:40:19 -04:00
Miguel Alatzar
47debc68c1 Bump app build number to 188 (#2744) 2019-04-26 12:23:48 -07:00
Miguel Alatzar
b878584020 Bump app version number to 1.19.0 (#2743) 2019-04-26 12:16:36 -07:00
Miguel Alatzar
86f2b0a7b9 Allow only jpeg, png, and bmp profile image uploads (#2742) 2019-04-26 08:44:03 -04:00
Miguel Alatzar
89e723b927 Delay PostTextbox animation on iOS when clearing text (#2739) 2019-04-25 07:52:52 -07:00
Miguel Alatzar
78058c2bda Check for null activity before calling finish (#2738) 2019-04-25 09:23:48 -04:00
Ryan Davis
b1324bcf13 MM-14907 RN: iOS - No MattermostShare error when sharing text that is over server's max post size (#2713)
* RN: iOS - No MattermostShare error when sharing text that is over server's max post size

* MM-14907 Allow editing if over maxPostSize.

* MM-14907 Always On Character Count

* Readded work from MM-14836 Post-Merge

* Refactor of getMaxPostSize to match getMaxFileSize
2019-04-25 09:18:32 -04:00
Joram Wilander
7668670884 Generate random channel URL name from display names that don't clean into a usable name (#2679) 2019-04-24 07:39:38 -07:00
Miguel Alatzar
de276c7d93 Increase Typing animation duration and remove handleScrollToRecentPost (#2730) 2019-04-23 14:49:46 -07:00
Miguel Alatzar
2d989a59e7 Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)
* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS
2019-04-23 13:48:18 -07:00
Miguel Alatzar
15125ba098 [MM-14836] Prevent sharing of images over max pixels (#2733)
* Prevent sharing of images over max image size

* Prevent sharing of images over max image pixels

* Move readableMaxImagePixels
2019-04-23 11:46:39 -07:00
Saturnino Abril
c318f92470 [MM-14619] Remove Client4.online and related setOnline function (#2718) 2019-04-24 00:48:13 +08:00
Miguel Alatzar
d5bf5bec78 [MM-14699] Update image cache manager to handle correct file extensions (#2701)
* Update image cache manager to handle correct file extensions

* Use RNFetchBlob.fs.existsWithDiffExt to find cached images with
  extensions other than the default .png

* Add package-lock.json

* Use app/util/file's getExtensionFromMime

* Define DEFAULT_MIME_TYPE in image_cache_manager.js
2019-04-22 19:22:39 -07:00
Miguel Alatzar
b11cf8e51c [MM-14669] Return null dimensions when height or width is falsy (#2681)
* Return 50x50 dimensions when height or width is 0

* Refactor image constants

* Return null dimensions when height or width is falsy
2019-04-22 19:17:52 -07:00
Miguel Alatzar
de7b88beb2 MM-14541 Fix search bar animation stutter in main search bar (#2672)
* Do not expand drawer on search start

* Add state.searching for determining showTeams

* Add leftComponent prop to SearchBar to render SwitchTeamsButton

* Update snapshot tests

* Use native driver when possible and fix start calls
2019-04-22 19:01:48 -07:00
Peter Dave Hello
76957c5ae4 Optimize png image with zopflipng lossless compression (#2682) 2019-04-22 21:58:27 -04:00
Chris Duarte
5d887f067d Reminder message (/remind) do not show message text on mobile. (#2710) 2019-04-22 21:56:59 -04:00
Elias Nahum
dbd56671a0 translations PR 20190422 (#2734) 2019-04-23 08:56:24 +08:00
Elias Nahum
316f409472 MM-15216 Fix crash when cookie does not set expiration date on iOS 2019-04-18 18:26:54 -04:00
Elias Nahum
8ae81de8f4 MM-15215 fix crash caused by malformed post textbox localize string 2019-04-18 18:26:50 -04:00
Elias Nahum
12aebc6713 Bump app version number to 1.18.1 2019-04-18 18:26:44 -04:00
Elias Nahum
f9645e63e1 Bump app build number to 187 2019-04-18 18:26:36 -04:00
Saturnino Abril
7590bb3063 Bump app build number to 186 (#2716) v1.18.0 2019-04-16 11:58:07 +08:00
Miguel Alatzar
69a2c58f5e Ensure the correct value for channelIsLoading is used (#2712) 2019-04-15 10:54:23 -07:00
Saturnino Abril
7efb044aa9 Bump app build number to 185 (#2708) 2019-04-10 16:57:52 +08:00
Elias Nahum
25673ff7e0 MM-14959 iOS Share Extension channel search open by default (#2698) 2019-04-09 14:39:35 -04:00
JoramWilander
78b23ae37e Update mattermost-redux 2019-04-09 13:27:09 -04:00
Elias Nahum
8ef6b35369 translations PR 20190408 (#2704) 2019-04-09 07:52:21 -04:00
Miguel Alatzar
385a081f78 Set canFlag to false for system messages (#2705) 2019-04-09 11:16:47 +08:00
Elias Nahum
0377249592 MM-14960 Use the correct icon set for channel types (#2699) 2019-04-08 10:51:10 -07:00
Miguel Alatzar
caac14907e [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (#2702)
* Update react-native-notifications dependency commit hash

* Add package-lock.json
2019-04-08 08:33:33 -04:00
Miguel Alatzar
6fef6d6b92 [MM-14899] Support sharing of screenshots via the iOS share extension (#2697)
* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager
2019-04-08 05:31:11 +08:00
Miguel Alatzar
64337b4851 Remove package name from push notification content (#2700) 2019-04-08 05:25:30 +08:00
Miguel Alatzar
713dd4e578 Avoid force casting items to URL (#2696) 2019-04-05 02:59:45 +08:00
Saturnino Abril
41ddeef2f7 Bump app build number to 184 (#2695) 2019-04-05 00:22:43 +08:00
Saturnino Abril
00e05c5e8f update commit of commonmark.js that fixes "blank spaces break markdown table" (#2694) 2019-04-05 00:14:54 +08:00
Daniel Schalla
a74fabcc98 Add CSRF Header in File Upload and Profile Image Set Operations (#2686) 2019-04-04 10:44:11 -04:00
Miguel Alatzar
bb9f96f409 [MM-14871] Fix extraction of sender name for push notifications (#2691)
* Return empty string for sender name when not found
2019-04-03 18:42:14 -07:00
Elias Nahum
3adec36c95 translations PR 20190401 (#2687) 2019-04-03 18:31:54 -03:00
Miguel Alatzar
4c690b5578 [MM-14866] Fix app crash due to parseInt call on null and display test notification message (#2690)
* Call setNumber on notification only if badge is not null

* Move setNumber call

* Add bundle to empty list
2019-04-03 10:15:34 -07:00