Commit graph

871 commits

Author SHA1 Message Date
Maxim Zaks
bf3f0be37e Don't show preview if remove_link_preview is set to true (#2939)
* Don't show preview if remove_link_preview is set to true

* remove white spaces
2019-07-03 01:44:29 +05:30
Elias Nahum
9f88923656
Place the new message indicator at the top of the screen (#2943)
* Place the new message indicator at the top of the screen

* Add unit tests for channel postVisibility reducer
2019-07-02 12:28:13 -04:00
Michael Kochell
1588f46ae4 Pass cookie for post actions (#2945) 2019-07-02 08:18:34 -04:00
Elias Nahum
bef593c3cf
MM-16467 Fix iOS layout when playing a youtube video in landscape (#2926) 2019-06-26 08:33:04 -04:00
Miguel Alatzar
fdb6cc6b2a [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (#2925)
* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy
2019-06-26 17:01:44 +08:00
Jesse Hallam
0e84b91257 MM-16442: count actual reactions before falling back to has_reactions (#2910)
* MM-16442: leverage post hasReactions utils function

This handles backwards compatibility with servers that do not have post
metadata, allowing the client to detect the presence of reactions that
in turn might need to be loaded when the component is mounted.

* temporary mattermost-redux commit for testing

* revert usage of hasReactions, and count directly

We still fallback to has_reactions if set, in case we're connected to a server without post metadata.

* revert mattermost-redux changes
2019-06-24 15:36:24 -04:00
Elias Nahum
e6fdef3451 MM-16397 save draft when app state changes (#2899)
* MM-16397 save draft when app state changes

* Unit tests
2019-06-22 11:21:57 -07:00
Chris Duarte
4d9780da56 Ios accessibility fixes (#2842)
* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot
2019-06-21 16:10:16 -04:00
Elias Nahum
3f925df9d9 MM-16392 Split view support & hide sidebar on tablets (#2898) 2019-06-21 14:10:30 -04:00
Elias Nahum
6546dfdfd2
Set post list data and timestamp based on the user timezone if available (#2888) 2019-06-17 15:24:28 -04:00
Eli Yukelzon
056d5a91b7 MM-15486 - Archived channels appear incorrectly on mobile (#2882)
* properly separate archived channels from 'other'

* make sure fetch is performed to display full list

* reverted unneeded change

* corrected display behaviour

* code cleanup

* redux commit reference updated
2019-06-17 10:22:36 -04:00
Sudheer
d3b2759c36 MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (#2883) 2019-06-13 16:29:35 -04:00
Elias Nahum
29240b9c6f
MM-16061 Keep unread channels in place on Tablets (#2865) 2019-06-06 15:15:40 -04:00
Elias Nahum
2abf044193
Show broken image for inline images without dimensions (#2868) 2019-06-06 15:14:32 -04:00
Elias Nahum
cdfc1a8317 Fix image preview width on tablets (#2867) 2019-06-06 21:03:17 +08:00
Elias Nahum
4d664f6654
Fix file upload not completing (#2866)
* Fix file upload not completing

* Update snapshots
2019-06-06 08:39:06 -04:00
Elias Nahum
bb8f524983
MM-16070 Fix channel sidebar state while filtering (#2864) 2019-06-05 19:33:23 -04:00
Elias Nahum
e5dab98a8e
Fix opengraph image on tablet to account for the sidebar (#2863) 2019-06-05 17:58:28 -04:00
Elias Nahum
89c2e66dfd
MM-16013 make paperplain animation faster (#2860) 2019-06-05 11:06:29 -04:00
Woolim Cho
b81cd49fb4 [MM-13879] Add Edit profile button to RHS menu and own profile pop-over (#2832)
* Add Edit Profile button to right panel menu

* Make user info of right panel menu opens the users own profile

* Add an Edit button of the users own profile

* handle transitions

* Add commandType to propTypes

* Update test codes

* add unit tests for user_profile

* Assign commandType manually

* Remove async, set delay to 0
2019-06-05 16:11:42 +08:00
Elias Nahum
1e8a1307af
Update netInfo to check for internet connectivity (#2850)
* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets
2019-05-31 13:33:56 -04:00
Elias Nahum
9bddbe6642 MM-15912 Fix uploads stuck at 100% (#2847) 2019-05-30 11:57:15 -07:00
Elias Nahum
de37a2aa7a
Fix autocomplete showing behind the keyboard on iOS and not working on Android (#2830)
* Fix autocomplete showing behind the keyboard on iOS and not working on Android

* Unbundle config for Android

* Dismiss keyboard on post long press, fix scroll to bottom on new message and update tests

* Add a timeout before scrolling to give time to render the last post

* Fix crash on Android
2019-05-27 19:18:43 -04:00
Miguel Alatzar
b1bdd2b07c Add unit test for PostBody's measurePost (#2833) 2019-05-25 11:58:49 -04:00
Miguel Alatzar
f444b70f4f
Allow updating of isLongPost after editing message (#2829) 2019-05-24 14:49:44 -07:00
Miguel Alatzar
a8eb25c965 [MM 15552] Determine number of placeholder rows from height (#2827)
* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check
2019-05-24 12:01:02 -04:00
Elias Nahum
ecfeee78a2 Allow drawer pan responder when switching teams (#2823) 2019-05-23 09:00:48 -07:00
Elias Nahum
f7f56e958b
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:02:00 -04:00
Elias Nahum
2b4574885b
Keep the channel drawer opened on tablets (#2793)
* Keep the channel drawer opened on tablets

* update en.json after running mmjstool

* Set the channel drawer to width 220

* feedback review

* PM Review

* Fix snapshots
2019-05-16 20:40:32 -04:00
Elias Nahum
d0071c21b0 MM-15282 Fix cutoff placeholder on Android (#2798)
* MM-15282 Fix cutoff placeholder on Android

* Feedback review
2019-05-16 17:35:09 -07:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies (#2777)
* Upgrade to RN 0.59.6 and dependencies

* Remove channel loader unused style

* Update to the latest netInfo that fixes a crash

* Do not set default timezone with moment

* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
scott lee davis
6cf8d1a9e8 MM-15442 Filtered list not showing bot account icon (#2787)
* handle channel.isBot undefined state gracefully

* Use Boolean for is isBot check

Co-Authored-By: Christopher Speller <crspeller@gmail.com>
2019-05-13 08:45:51 -07:00
Jason Blais
d51d4e4c9c Update help text for at-here, at-channel, at-all (#2790)
* Update help text for at-here, at-channel, at-all

https://community.mattermost.com/core/pl/kqmabdzqb3df7xx5xjsaosozir

* Update at_mention.js
2019-05-13 11:13:39 -04:00
Miguel Alatzar
45e5bae8da
Avoid possible reading of length property on undefined (#2783) 2019-05-10 09:34:23 -07:00
Miguel Alatzar
c91bf75b09
[MM-14887] Include all png, jpeg, and bmp MIME types (#2781)
* Include all png, jpeg, and bmp MIME types

* Update snapshot
2019-05-09 14:18:24 -07:00
Saturnino Abril
c450c530a7 add lastPostIndex props to Thread and Permalink, and add markers for those screens (#2780) 2019-05-09 07:39:58 -07:00
scott lee davis
b819867b50 MM-15228 consecutive bot posts maintain the profile image (#2746)
* do not group consecutive bot posts

* fixes from make check-style
2019-05-08 09:38:18 -07:00
Saturnino Abril
e086d66ec2
[MM-13955] Add telemetry for Android (#2719)
* add markers for Android profiling

* update per comments

* Remove beta build flag

* update per comment, latest change on telemetry server and others

* rebase and fix merge conflicts, and update per comments

* update commit hash of mattermost-redux
2019-05-08 00:23:59 +08:00
Elias Nahum
5ce9208d32 MM-14958 Scroll to bottom when posting a new message (#2761) 2019-05-07 13:28:16 +05:30
Elias Nahum
a16c98b34e MM-15428 Return empty object for native managed configuration when not set (#2770) 2019-05-06 09:20:08 -07:00
Elias Nahum
08df256c1d MM-14921 Fix iPad layout including safeAreaInsets (#2748)
* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests
2019-05-03 17:42:32 -04:00
Miguel Alatzar
19c493ff6e
[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:24:40 -07:00
Elias Nahum
6eeb830662
Use of cached managed config in components (#2758) 2019-05-01 18:34:09 -04:00
Harrison Healey
1173ca3d97
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:34:45 -04:00
Joram Wilander
df2ecf3409
Add native module to reset TextInput to fix bad cursors in some Android keyboards (#2753) 2019-05-01 09:27:21 -04:00
scott lee davis
5a70bedcbe MM-15161 show icon for bot instead of system icon in ephemeral post (#2740)
* show icon for bot instead of system icon in ephemeral post

* added check for if user is null
2019-05-01 09:08:50 -04:00
Elias Nahum
2d48215bf1
fix mattermostManaged event name (#2754) 2019-04-30 11:12:28 -04:00
Courtney Pattison
ce5c30e9ca [MM-9454] Added fade to send button (#2677)
* [MM-9454] Added jest-enzyme to devDependencies

* [MM-9454] Refactored SendButton as component

* [MM-9454] Added fade to SendButton

* [MM-9454] Changed Fade to PureComponent
2019-04-29 07:54:00 -07:00
Miguel Alatzar
cb0e4e225a
[MM-14887] Allow only jpeg, png, and bmp profile image uploads (#2715)
* Allow only for jpeg, png, and bmp profile image uploads

* Add file type if missing and update error id

* Update mattermost-redux commit hash

* Point mattermost-redux to latest master commit
2019-04-25 14:27:06 -07:00
Miguel Alatzar
dc554bdfa7
Delay PostTextbox animation on iOS when clearing text (#2739) 2019-04-25 07:51:47 -07:00