Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM-15315 Add native module to reset TextInput to fix bad cursors in some Android keyboards #2753

Merged
merged 1 commit into from May 1, 2019

Conversation

jwilander
Copy link
Member

Summary

On some Android keyborads (Samsung for example), autocompleting and then typing would cause the cursor to jump backwards to the position it was in before the autocomplete suggestion was selected.

Thanks to @hmhealey for pointing me at facebook/react-native#12462 which contained the workaround to fix this.

Ticket Link

https://mattermost.atlassian.net/browse/MM-15315

Device Information

Galaxy S9, Android 9, Samsung and Google keyboards

@jwilander jwilander added the 2: Dev Review Requires review by a core commiter label Apr 30, 2019
@enahum
Copy link
Contributor

enahum commented Apr 30, 2019

@jwilander do you know if this fix is actually applied in later versions of RN?

@jwilander
Copy link
Member Author

It is not applied in later versions of RN. They have yet to accept a fix for this.

@enahum
Copy link
Contributor

enahum commented Apr 30, 2019

The RN merge system is weird, we should monitor the release notes instead of the PR.

@hmhealey hmhealey added this to the 1.20 milestone Apr 30, 2019
Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable enough to me. Hopefully this will fix those issues that keep popping up with Samsung phones

@jwilander jwilander merged commit df2ecf3 into master May 1, 2019
@jwilander jwilander deleted the mm-15315 branch May 1, 2019 13:27
@jwilander jwilander added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels May 1, 2019
@lindy65 lindy65 added Tests/Not Needed Does not require tests and removed 4: Reviews Complete All reviewers have approved the pull request labels Jun 3, 2019
@DHaussermann DHaussermann added Tests/Done Required tests have been written and removed Tests/Not Needed Does not require tests labels Jun 5, 2019
BastienF pushed a commit to BastienF/mattermost-mobile that referenced this pull request Sep 8, 2019
csduarte pushed a commit to uber-archive/mattermost-mobile that referenced this pull request Sep 25, 2019
* #MI-372 updated mattermost-redux commit ID to use the latest changes (mattermost#2670)

* #MI-372 updated mattermost-redux commit ID to use the latest changes

* Updated commit ID in package lock as well

* MM-13618 Adding bot tags. (mattermost#2669)

* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.

* Generate random channel URL name from display names that don't clean into a usable name (mattermost#2679)

* MM-13151 Increase double tap delay for post action buttons (mattermost#2406)

* Use app state to disable a button when click to prevent double tap

* remove disable button state after 4000ms

* modify preventDoubleTap to have optional delayTime param

* remove local state use for button control

* remove unused method

* remove app state method to disable a button

* Update tap.js

* Update NOTICE.txt (mattermost#2685)

- Misc homepage and project info updates

* [MM-14866] Fix app crash due to parseInt call on null and display test notification message (mattermost#2690)

* Call setNumber on notification only if badge is not null

* Move setNumber call

* Add bundle to empty list

* [MM-14871] Fix extraction of sender name for push notifications (mattermost#2691)

* Return empty string for sender name when not found

* Update README.md (mattermost#2692)

* Add CSRF Header in File Upload and Profile Image Set Operations (mattermost#2686)

* update commit of commonmark.js that fixes "blank spaces break markdown table" (mattermost#2694)

* Bump app build number to 184 (mattermost#2695)

* Avoid force casting items to URL (mattermost#2696)

* Remove package name from push notification content (mattermost#2700)

* [MM-14899] Support sharing of screenshots via the iOS share extension (mattermost#2697)

* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager

* [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (mattermost#2702)

* Update react-native-notifications dependency commit hash

* Add package-lock.json

* MM-14960 Use the correct icon set for channel types (mattermost#2699)

* Set canFlag to false for system messages (mattermost#2705)

* add mmjstool as dev dep (mattermost#2707)

* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request

* [MM-14191] Render emojis in Interactive Message Buttons (mattermost#2640)

* MM-14959 iOS Share Extension channel search open by default (mattermost#2698)

* Executing translation extraction script (mattermost#2703)

* Bump app build number to 185 (mattermost#2708)

* Ensure the correct value for channelIsLoading is used (mattermost#2712)

* Proposed changelog update regarding AppConfig compatability (mattermost#2688)

Make it more obvious what action needs to be taken + some readability updates

* Reorganize post state and make postsInChannel into a sparse array (mattermost#2693)

* MM-13957 Reorganize post actions (mattermost#2553)

* MM-13957 Reorganize post actions

* Update mattermost-redux

* Update mattermost-redux

* Update package-lock.json to resolve build issues

* MM-13958/MM-13959 Make postsInChannel into a sparse array (mattermost#2600)

* MM-13960 Re-add combined system messages (mattermost#2637)

* MM-13960 Re-add combined system messages

* Pass entire post to PostOptions

* Update mattermost-redux

* Update mattermost-redux

* Address feedback

* Update mattermost-redux

* add telemetry config for beta build (mattermost#2714)

* Bump app build number to 186 (mattermost#2716)

* DateHeader rendering bug fix (mattermost#2717)

* app/screens/search.js DateHeader part bug fix

* DateHeader parts fix

* v1.18 Changelog (mattermost#2671)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user (mattermost#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

* MM-14417: Add messaging for channel mentions of users not in constrai… (mattermost#2711)

* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.

* Bump app build number to 187

* Bump app version number to 1.18.1

* MM-15215 fix crash caused by malformed post textbox localize string

* MM-15216 Fix crash when cookie does not set expiration date on iOS

* v1.18.1 Changelog (mattermost#2726)

* Update CHANGELOG.md

* Update CHANGELOG.md

* MM-14741 Add default option to post action dropdown (mattermost#2724)

* Reminder message (`/remind`) do not show message text on mobile. (mattermost#2710)

* Optimize png image with zopflipng lossless compression (mattermost#2682)

* MM-14541 Fix search bar animation stutter in main search bar (mattermost#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

* [MM-14669] Return null dimensions when height or width is falsy (mattermost#2681)

* Return 50x50 dimensions when height or width is 0

* Refactor image constants

* Return null dimensions when height or width is falsy

* [MM-14699] Update image cache manager to handle correct file extensions (mattermost#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

* [MM-14619] Remove Client4.online and related setOnline function (mattermost#2718)

* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901

* [MM-14836] Prevent sharing of images over max pixels (mattermost#2733)

* Prevent sharing of images over max image size

* Prevent sharing of images over max image pixels

* Move readableMaxImagePixels

* Match lineHeight used in ChannelInfoHeader to PostBody's (mattermost#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS

* Increase Typing animation duration and remove handleScrollToRecentPost (mattermost#2730)

* MM-14907 RN: iOS - No MattermostShare error when sharing text that is over server's max post size (mattermost#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

* Check for null activity before calling finish (mattermost#2738)

* Delay PostTextbox animation on iOS when clearing text (mattermost#2739)

* [MM-14887] Allow only jpeg, png, and bmp profile image uploads (mattermost#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

* Bump app version number to 1.19.0 (mattermost#2743)

* Bump app build number to 188 (mattermost#2744)

* [MM-12599] Implement assets for Adaptive icons (mattermost#2663)

* [MM-9454] Added fade to send button (mattermost#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

* Remove the RN bridge from MattermostManaged (mattermost#2741)

* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners

* [MM-14777] Remove post for user after user deletes it (mattermost#2745)

* Remove post after delete

* Add unit test

* Fix check-style errors

* fix mattermostManaged event name (mattermost#2754)

* Allow user to install mattermost on sd card (mattermost#2731)

Cannot install Mattermost when there is no enough space in internal memory, So when add this line
android:installLocation="auto" 
to the manifest file user can install Mattermost on the sd card.
https://developer.android.com/guide/topics/data/install-location

* MM-14885 Android use sender_name in push notifications (mattermost#2747)

* MM-15161 show icon for bot instead of system icon in ephemeral post (mattermost#2740)

* show icon for bot instead of system icon in ephemeral post

* added check for if user is null

* Add native module to reset TextInput to fix bad cursors in some Android keyboards (mattermost#2753)

* MM-14030 Don't show large gifs in posts (mattermost#2750)

* MM-14030 Don't show large gifs in posts

* Re-add default argument

* MM-15284 Disable allowBackup on Android (mattermost#2756)

* Use of cached managed config in components (mattermost#2758)

* Remove outdated information from contributing file (mattermost#2759)

* [MM-15401] Fix setting of extension when caching files (mattermost#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

* Bump app build number to 189 (mattermost#2764)

* Use numbered capture over named capture (mattermost#2765)

* MM-14921 Fix iPad layout including safeAreaInsets (mattermost#2748)

* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests

* Fixes master branch from crashing when building in release mode (mattermost#2767)

* MM-15428 Fix iOS when managed config is not set (mattermost#2768)

* Bump app build number to 190 (mattermost#2769)

* MM-15428 Return empty object for native managed configuration when not set (mattermost#2770)

* Bump app build number to 191 (mattermost#2771)

* Update gems (mattermost#2773)

* MM-14958 Scroll to bottom when posting a new message (mattermost#2761)

* [MM-13955] Add telemetry for Android (mattermost#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

* Update mattermost-redux (mattermost#2775)

* MM-15228 consecutive bot posts maintain the profile image (mattermost#2746)

* do not group consecutive bot posts

* fixes from make check-style

* Removed @babel/polyfill (mattermost#2776)

* [MM-15379] Avoid possible reading of .name on undefined (mattermost#2778)

* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash

* add lastPostIndex props to Thread and Permalink, and add markers for those screens (mattermost#2780)

* [MM-14887] Include all png, jpeg, and bmp MIME types (mattermost#2781)

* Include all png, jpeg, and bmp MIME types

* Update snapshot

* Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (mattermost#2782)

* Avoid possible reading of length property on undefined (mattermost#2783)

* Bump app build number to 192 (mattermost#2784)

* Update fastlane iOS beta tester link (mattermost#2785)

* Update help text for at-here, at-channel, at-all (mattermost#2790)

* Update help text for at-here, at-channel, at-all

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

* Update at_mention.js

* MM-15442 Filtered list not showing bot account icon (mattermost#2787)

* handle channel.isBot undefined state gracefully

* Use Boolean for is isBot check

Co-Authored-By: Christopher Speller <crspeller@gmail.com>

* MM-15532 properly mark channel as read when reading the channel in another client (mattermost#2789)

* Upgrade to RN 0.59.6 and dependencies (mattermost#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

* MM-15528: Updates to channel info for group-constrained channels. (mattermost#2786)

* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>

* Bump app build number to 193 (mattermost#2794)

* v1.19 Changelog (mattermost#2720)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Notification receipt delivery for Android and iOS (mattermost#2755)

* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response

* [MM-14751] Take group_constrained into account when adding users to channels (mattermost#2737)

* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux

* Update rnfetchblob (mattermost#2802)

* MM-15427 Google Play 64-bit requirement compliance (mattermost#2792)

* MM-15481 close post menu when replying to a message (mattermost#2797)

* Fix select default channel (mattermost#2800)

* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux

* MM-15282 Fix cutoff placeholder on Android (mattermost#2798)

* MM-15282 Fix cutoff placeholder on Android

* Feedback review

* Keep the channel drawer opened on tablets (mattermost#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

* [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (mattermost#2796)

* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation

* MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (mattermost#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

* MM-14802 Add autocorrect when editing a post (mattermost#2810)

* Allow flagging of read-only channel posts (mattermost#2801)

* Update mattermost-redux (mattermost#2813)

* Update mattermost-redux

* Fix code so it can be parsed by mmjstool (mattermost#2816)

* Upgrade react-native-sentry (mattermost#2815)

* translations PR 20190522 (mattermost#2817)

* MM-15582 Don't show forgot password link without email/username login (mattermost#2811)

* Bump Version & Build number (mattermost#2818)

* Bump app version number to 1.20.0

* Bump app build number to 194

* Update fastlane

* Fix Build script apk location (mattermost#2819)

* move apk using the full path (mattermost#2820)

* Fix android release link (mattermost#2821)

* fix link on Android beta signup message (mattermost#2822)

* Allow drawer pan responder when switching teams (mattermost#2823)

* update react-native-device-info crash fix (mattermost#2824)

* [MM 15552] Determine number of placeholder rows from height (mattermost#2827)

* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check

* MM-15667 if post was removed exclude it from postsInChannel (mattermost#2831)

* Allow updating of isLongPost after editing message (mattermost#2829)

* Add unit test for PostBody's measurePost (mattermost#2833)

* fix build for unsigned and ios-sim-x86_64 (mattermost#2834)

* Fix autocomplete showing behind the keyboard on iOS and not working on Android (mattermost#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

* translations PR 20190527 (mattermost#2837)

* MM-15643 Send user to settings when passcode is required (mattermost#2836)

* MM-15643 Send user to settings when passcode is required

* Allow access to the managed config in the iOS extensions

* Bump app build number to 195 (mattermost#2843)

* MM-15643 Better close app when checking for pin code (mattermost#2846)

* MM-15912 Fix uploads stuck at 100% (mattermost#2847)

* configure telemetry on build (mattermost#2852)

* Update netInfo to check for internet connectivity (mattermost#2850)

* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets

* Bump app build number to 196 (mattermost#2853)

* MM-15959 disable android firebase analytics (mattermost#2854)

* fix server version for Android telemetry (mattermost#2857)

* Update NOTICE.txt (mattermost#2856)

- add new dependencies @react-native-community/async-storage and @react-native-community-netinfo
- misc copyright metadata updates

* translations PR 20190603 (mattermost#2859)

* MM-16013 make paperplain animation faster (mattermost#2860)

* MM-15643 Fix race condition to prompt for passcode and (mattermost#2862)

detect if passcode has been removed while the app in the background

* Fix opengraph image on tablet to account for the sidebar (mattermost#2863)

* MM-16070 Fix channel sidebar state while filtering (mattermost#2864)

* Fix file upload not completing (mattermost#2866)

* Fix file upload not completing

* Update snapshots

* Fix image preview width on tablets (mattermost#2867)

* Show broken image for inline images without dimensions (mattermost#2868)

* MM-16061 Keep unread channels in place on Tablets (mattermost#2865)

* Allow excluding archived channels in getChannelsBySections (mattermost#2871)

* Bump app build number to 197 (mattermost#2872)

* translations PR 20190611 (mattermost#2874)

* MM-16281 Fix regression on android push notification messages (mattermost#2879)

* MM-16280 Fix when post fail to send (mattermost#2880)

* MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (mattermost#2883)

* Bump app build number to 198 (mattermost#2884)

* MM-16095 Android share extension to use keychain for authentication (mattermost#2876)

* MM-16095 Android share extension to use keychain for authentication

* Remove unnecessary comment

* Update react-native-notifications (mattermost#2881)

* Add key to SlideUpPanel (mattermost#2845)

* fix ios sso cookie bug when running on top-level domain (mattermost#2858)

* [MM-14917] RN Android: Push notification settings are only saved when closing settings page (mattermost#2735)

* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma

* [MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (mattermost#2844)

* Member list items are selectable only when canManagerUsers is true

* Address review comment

* MM-15486 - Archived channels appear incorrectly on mobile (mattermost#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

* Set post list data and timestamp based on the user timezone if available (mattermost#2888)

* MM-16239 disable fields according to SAML or LDAP (mattermost#2878)

* MM-16239 disable fields according to SAML or LDAP

* fix typo

* Update react-native-device-info and fix status value: (mattermost#2892)

* translations PR 20190617 (mattermost#2891)

* Update gradle to use android-jsc as instructed (mattermost#2893)

* Bump app version number to 1.21.0 (mattermost#2894)

* Return if message is null (mattermost#2895)

* Bump app build number to 199 (mattermost#2896)

* Fix crash on Android by Updating JSC (mattermost#2900)

* MM-16432 Fix missing posts when using since API (mattermost#2901)

* Bump app build number to 201 (mattermost#2903)

* MM-16392 Split view support & hide sidebar on tablets (mattermost#2898)

* Ios accessibility fixes (mattermost#2842)

* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot

* MM-16472 Fix renderItem not returning anything (mattermost#2909)

* cherry-pick mattermost#2917

* translations PR 20190624 (mattermost#2919)

* MM-16463 Fix replying from push notification to a message in a thread (mattermost#2927)

* [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (mattermost#2925)

* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy

* Check if entities is nil (mattermost#2930)

* Bump app build number to 202 (mattermost#2933)

* Update jsc to intl version (mattermost#2931)

* Update redux update to use the release-5.13 branch (mattermost#2934)

* Bump app build number to 203 (mattermost#2935)

* Fix AD/LDAP & SAML profile sync properties (mattermost#2941)

* Place the new message indicator at the top of the screen (mattermost#2943)

* Place the new message indicator at the top of the screen

* Add unit tests for channel postVisibility reducer

* translations PR 20190701 (mattermost#2946)

* Bump app build number to 204 (mattermost#2955)

* MM-16442: count actual reactions before falling back to has_reactions (mattermost#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

* MM-16695 Update mattermost-redux to add additional null check (mattermost#2951)

* MM-16695 Update mattermost-redux to add additional null check

* Update mattermost-redux

* MM-16823 Fix "Freeze" after deleting cache (mattermost#2956)

* Bump app build number to 205 (mattermost#2960)

* Update device info ref (mattermost#2953)

*  Bump app build number to 206 (mattermost#2963)

* Bump app build number to 206

* Set Android targetSdkVersion to API level 28

* translations PR 20190708 (mattermost#2962)

* fix app chrashing when sending invalid slash command (mattermost#2966)

* MM-16857 Fix long posts (mattermost#2967)

* Fix android crash on Android O & P after upgrading target to 28 (mattermost#2968)

* Bump app build number to 207 (mattermost#2972)

* Temporarily disable Android source maps

* Update fastlane

* [MM-17016] Ensure Flatlist is mounted prior to calling scrollToIndex (mattermost#2977)

* Ensure Flatlist is mounted prior to calling scrollToIndex

* Address review comment

* Bump app build number to 208 (mattermost#2979)

* MM-16829 Fix for sso with server subpaths (mattermost#2991)

* Bump Version to 1.21.1 and build number to 209 (mattermost#2995)

* Bump app build number to 209

* Bump app version number to 1.21.1

* MM-16829 Fix for websocket reconnects for android

* Bump app build number to 210 (mattermost#3000)

* Fix assigning credentials during app init (mattermost#3034)

* Fix assigning credentials during app init

* remove setAppCredentials in entry screen

* Bump app build number to 212 (mattermost#3042)

* Bump app version number to 1.21.2 (mattermost#3043)

* Dispatch setDeviceToken after hydration (mattermost#3056)

* Bump app build number to 213 (mattermost#3058)

* Call scrollToIndex only if flatListRef.current is not null (mattermost#3022)

* Bump app build number to 214 (mattermost#3063)

* Check initialIndex in callback (mattermost#3065)

* Bump app build number to 215 (mattermost#3066)

* Removed the BackgroundLoad
svssivaprasad1 added a commit to uber-archive/mattermost-mobile that referenced this pull request Sep 30, 2019
* #MI-372 updated mattermost-redux commit ID to use the latest changes (mattermost#2670)

* #MI-372 updated mattermost-redux commit ID to use the latest changes

* Updated commit ID in package lock as well

* MM-13618 Adding bot tags. (mattermost#2669)

* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.

* Generate random channel URL name from display names that don't clean into a usable name (mattermost#2679)

* MM-13151 Increase double tap delay for post action buttons (mattermost#2406)

* Use app state to disable a button when click to prevent double tap

* remove disable button state after 4000ms

* modify preventDoubleTap to have optional delayTime param

* remove local state use for button control

* remove unused method

* remove app state method to disable a button

* Update tap.js

* Update NOTICE.txt (mattermost#2685)

- Misc homepage and project info updates

* [MM-14866] Fix app crash due to parseInt call on null and display test notification message (mattermost#2690)

* Call setNumber on notification only if badge is not null

* Move setNumber call

* Add bundle to empty list

* [MM-14871] Fix extraction of sender name for push notifications (mattermost#2691)

* Return empty string for sender name when not found

* Update README.md (mattermost#2692)

* Add CSRF Header in File Upload and Profile Image Set Operations (mattermost#2686)

* update commit of commonmark.js that fixes "blank spaces break markdown table" (mattermost#2694)

* Bump app build number to 184 (mattermost#2695)

* Avoid force casting items to URL (mattermost#2696)

* Remove package name from push notification content (mattermost#2700)

* [MM-14899] Support sharing of screenshots via the iOS share extension (mattermost#2697)

* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager

* [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (mattermost#2702)

* Update react-native-notifications dependency commit hash

* Add package-lock.json

* MM-14960 Use the correct icon set for channel types (mattermost#2699)

* Set canFlag to false for system messages (mattermost#2705)

* add mmjstool as dev dep (mattermost#2707)

* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request

* [MM-14191] Render emojis in Interactive Message Buttons (mattermost#2640)

* MM-14959 iOS Share Extension channel search open by default (mattermost#2698)

* Executing translation extraction script (mattermost#2703)

* Bump app build number to 185 (mattermost#2708)

* Ensure the correct value for channelIsLoading is used (mattermost#2712)

* Proposed changelog update regarding AppConfig compatability (mattermost#2688)

Make it more obvious what action needs to be taken + some readability updates

* Reorganize post state and make postsInChannel into a sparse array (mattermost#2693)

* MM-13957 Reorganize post actions (mattermost#2553)

* MM-13957 Reorganize post actions

* Update mattermost-redux

* Update mattermost-redux

* Update package-lock.json to resolve build issues

* MM-13958/MM-13959 Make postsInChannel into a sparse array (mattermost#2600)

* MM-13960 Re-add combined system messages (mattermost#2637)

* MM-13960 Re-add combined system messages

* Pass entire post to PostOptions

* Update mattermost-redux

* Update mattermost-redux

* Address feedback

* Update mattermost-redux

* add telemetry config for beta build (mattermost#2714)

* Bump app build number to 186 (mattermost#2716)

* DateHeader rendering bug fix (mattermost#2717)

* app/screens/search.js DateHeader part bug fix

* DateHeader parts fix

* v1.18 Changelog (mattermost#2671)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user (mattermost#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

* MM-14417: Add messaging for channel mentions of users not in constrai… (mattermost#2711)

* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.

* Bump app build number to 187

* Bump app version number to 1.18.1

* MM-15215 fix crash caused by malformed post textbox localize string

* MM-15216 Fix crash when cookie does not set expiration date on iOS

* v1.18.1 Changelog (mattermost#2726)

* Update CHANGELOG.md

* Update CHANGELOG.md

* MM-14741 Add default option to post action dropdown (mattermost#2724)

* Reminder message (`/remind`) do not show message text on mobile. (mattermost#2710)

* Optimize png image with zopflipng lossless compression (mattermost#2682)

* MM-14541 Fix search bar animation stutter in main search bar (mattermost#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

* [MM-14669] Return null dimensions when height or width is falsy (mattermost#2681)

* Return 50x50 dimensions when height or width is 0

* Refactor image constants

* Return null dimensions when height or width is falsy

* [MM-14699] Update image cache manager to handle correct file extensions (mattermost#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

* [MM-14619] Remove Client4.online and related setOnline function (mattermost#2718)

* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901

* [MM-14836] Prevent sharing of images over max pixels (mattermost#2733)

* Prevent sharing of images over max image size

* Prevent sharing of images over max image pixels

* Move readableMaxImagePixels

* Match lineHeight used in ChannelInfoHeader to PostBody's (mattermost#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS

* Increase Typing animation duration and remove handleScrollToRecentPost (mattermost#2730)

* MM-14907 RN: iOS - No MattermostShare error when sharing text that is over server's max post size (mattermost#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

* Check for null activity before calling finish (mattermost#2738)

* Delay PostTextbox animation on iOS when clearing text (mattermost#2739)

* [MM-14887] Allow only jpeg, png, and bmp profile image uploads (mattermost#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

* Bump app version number to 1.19.0 (mattermost#2743)

* Bump app build number to 188 (mattermost#2744)

* [MM-12599] Implement assets for Adaptive icons (mattermost#2663)

* [MM-9454] Added fade to send button (mattermost#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

* Remove the RN bridge from MattermostManaged (mattermost#2741)

* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners

* [MM-14777] Remove post for user after user deletes it (mattermost#2745)

* Remove post after delete

* Add unit test

* Fix check-style errors

* fix mattermostManaged event name (mattermost#2754)

* Allow user to install mattermost on sd card (mattermost#2731)

Cannot install Mattermost when there is no enough space in internal memory, So when add this line
android:installLocation="auto" 
to the manifest file user can install Mattermost on the sd card.
https://developer.android.com/guide/topics/data/install-location

* MM-14885 Android use sender_name in push notifications (mattermost#2747)

* MM-15161 show icon for bot instead of system icon in ephemeral post (mattermost#2740)

* show icon for bot instead of system icon in ephemeral post

* added check for if user is null

* Add native module to reset TextInput to fix bad cursors in some Android keyboards (mattermost#2753)

* MM-14030 Don't show large gifs in posts (mattermost#2750)

* MM-14030 Don't show large gifs in posts

* Re-add default argument

* MM-15284 Disable allowBackup on Android (mattermost#2756)

* Use of cached managed config in components (mattermost#2758)

* Remove outdated information from contributing file (mattermost#2759)

* [MM-15401] Fix setting of extension when caching files (mattermost#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

* Bump app build number to 189 (mattermost#2764)

* Use numbered capture over named capture (mattermost#2765)

* MM-14921 Fix iPad layout including safeAreaInsets (mattermost#2748)

* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests

* Fixes master branch from crashing when building in release mode (mattermost#2767)

* MM-15428 Fix iOS when managed config is not set (mattermost#2768)

* Bump app build number to 190 (mattermost#2769)

* MM-15428 Return empty object for native managed configuration when not set (mattermost#2770)

* Bump app build number to 191 (mattermost#2771)

* Update gems (mattermost#2773)

* MM-14958 Scroll to bottom when posting a new message (mattermost#2761)

* [MM-13955] Add telemetry for Android (mattermost#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

* Update mattermost-redux (mattermost#2775)

* MM-15228 consecutive bot posts maintain the profile image (mattermost#2746)

* do not group consecutive bot posts

* fixes from make check-style

* Removed @babel/polyfill (mattermost#2776)

* [MM-15379] Avoid possible reading of .name on undefined (mattermost#2778)

* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash

* add lastPostIndex props to Thread and Permalink, and add markers for those screens (mattermost#2780)

* [MM-14887] Include all png, jpeg, and bmp MIME types (mattermost#2781)

* Include all png, jpeg, and bmp MIME types

* Update snapshot

* Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (mattermost#2782)

* Avoid possible reading of length property on undefined (mattermost#2783)

* Bump app build number to 192 (mattermost#2784)

* Update fastlane iOS beta tester link (mattermost#2785)

* Update help text for at-here, at-channel, at-all (mattermost#2790)

* Update help text for at-here, at-channel, at-all

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

* Update at_mention.js

* MM-15442 Filtered list not showing bot account icon (mattermost#2787)

* handle channel.isBot undefined state gracefully

* Use Boolean for is isBot check

Co-Authored-By: Christopher Speller <crspeller@gmail.com>

* MM-15532 properly mark channel as read when reading the channel in another client (mattermost#2789)

* Upgrade to RN 0.59.6 and dependencies (mattermost#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

* MM-15528: Updates to channel info for group-constrained channels. (mattermost#2786)

* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>

* Bump app build number to 193 (mattermost#2794)

* v1.19 Changelog (mattermost#2720)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Notification receipt delivery for Android and iOS (mattermost#2755)

* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response

* [MM-14751] Take group_constrained into account when adding users to channels (mattermost#2737)

* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux

* Update rnfetchblob (mattermost#2802)

* MM-15427 Google Play 64-bit requirement compliance (mattermost#2792)

* MM-15481 close post menu when replying to a message (mattermost#2797)

* Fix select default channel (mattermost#2800)

* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux

* MM-15282 Fix cutoff placeholder on Android (mattermost#2798)

* MM-15282 Fix cutoff placeholder on Android

* Feedback review

* Keep the channel drawer opened on tablets (mattermost#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

* [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (mattermost#2796)

* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation

* MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (mattermost#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

* MM-14802 Add autocorrect when editing a post (mattermost#2810)

* Allow flagging of read-only channel posts (mattermost#2801)

* Update mattermost-redux (mattermost#2813)

* Update mattermost-redux

* Fix code so it can be parsed by mmjstool (mattermost#2816)

* Upgrade react-native-sentry (mattermost#2815)

* translations PR 20190522 (mattermost#2817)

* MM-15582 Don't show forgot password link without email/username login (mattermost#2811)

* Bump Version & Build number (mattermost#2818)

* Bump app version number to 1.20.0

* Bump app build number to 194

* Update fastlane

* Fix Build script apk location (mattermost#2819)

* move apk using the full path (mattermost#2820)

* Fix android release link (mattermost#2821)

* fix link on Android beta signup message (mattermost#2822)

* Allow drawer pan responder when switching teams (mattermost#2823)

* update react-native-device-info crash fix (mattermost#2824)

* [MM 15552] Determine number of placeholder rows from height (mattermost#2827)

* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check

* MM-15667 if post was removed exclude it from postsInChannel (mattermost#2831)

* Allow updating of isLongPost after editing message (mattermost#2829)

* Add unit test for PostBody's measurePost (mattermost#2833)

* fix build for unsigned and ios-sim-x86_64 (mattermost#2834)

* Fix autocomplete showing behind the keyboard on iOS and not working on Android (mattermost#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

* translations PR 20190527 (mattermost#2837)

* MM-15643 Send user to settings when passcode is required (mattermost#2836)

* MM-15643 Send user to settings when passcode is required

* Allow access to the managed config in the iOS extensions

* Bump app build number to 195 (mattermost#2843)

* MM-15643 Better close app when checking for pin code (mattermost#2846)

* MM-15912 Fix uploads stuck at 100% (mattermost#2847)

* configure telemetry on build (mattermost#2852)

* Update netInfo to check for internet connectivity (mattermost#2850)

* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets

* Bump app build number to 196 (mattermost#2853)

* MM-15959 disable android firebase analytics (mattermost#2854)

* fix server version for Android telemetry (mattermost#2857)

* Update NOTICE.txt (mattermost#2856)

- add new dependencies @react-native-community/async-storage and @react-native-community-netinfo
- misc copyright metadata updates

* translations PR 20190603 (mattermost#2859)

* MM-16013 make paperplain animation faster (mattermost#2860)

* MM-15643 Fix race condition to prompt for passcode and (mattermost#2862)

detect if passcode has been removed while the app in the background

* Fix opengraph image on tablet to account for the sidebar (mattermost#2863)

* MM-16070 Fix channel sidebar state while filtering (mattermost#2864)

* Fix file upload not completing (mattermost#2866)

* Fix file upload not completing

* Update snapshots

* Fix image preview width on tablets (mattermost#2867)

* Show broken image for inline images without dimensions (mattermost#2868)

* MM-16061 Keep unread channels in place on Tablets (mattermost#2865)

* Allow excluding archived channels in getChannelsBySections (mattermost#2871)

* Bump app build number to 197 (mattermost#2872)

* translations PR 20190611 (mattermost#2874)

* MM-16281 Fix regression on android push notification messages (mattermost#2879)

* MM-16280 Fix when post fail to send (mattermost#2880)

* MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (mattermost#2883)

* Bump app build number to 198 (mattermost#2884)

* MM-16095 Android share extension to use keychain for authentication (mattermost#2876)

* MM-16095 Android share extension to use keychain for authentication

* Remove unnecessary comment

* Update react-native-notifications (mattermost#2881)

* Add key to SlideUpPanel (mattermost#2845)

* fix ios sso cookie bug when running on top-level domain (mattermost#2858)

* [MM-14917] RN Android: Push notification settings are only saved when closing settings page (mattermost#2735)

* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma

* [MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (mattermost#2844)

* Member list items are selectable only when canManagerUsers is true

* Address review comment

* MM-15486 - Archived channels appear incorrectly on mobile (mattermost#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

* Set post list data and timestamp based on the user timezone if available (mattermost#2888)

* MM-16239 disable fields according to SAML or LDAP (mattermost#2878)

* MM-16239 disable fields according to SAML or LDAP

* fix typo

* Update react-native-device-info and fix status value: (mattermost#2892)

* translations PR 20190617 (mattermost#2891)

* Update gradle to use android-jsc as instructed (mattermost#2893)

* Bump app version number to 1.21.0 (mattermost#2894)

* Return if message is null (mattermost#2895)

* Bump app build number to 199 (mattermost#2896)

* Fix crash on Android by Updating JSC (mattermost#2900)

* MM-16432 Fix missing posts when using since API (mattermost#2901)

* Bump app build number to 201 (mattermost#2903)

* MM-16392 Split view support & hide sidebar on tablets (mattermost#2898)

* Ios accessibility fixes (mattermost#2842)

* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot

* MM-16472 Fix renderItem not returning anything (mattermost#2909)

* cherry-pick mattermost#2917

* translations PR 20190624 (mattermost#2919)

* MM-16463 Fix replying from push notification to a message in a thread (mattermost#2927)

* [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (mattermost#2925)

* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy

* Check if entities is nil (mattermost#2930)

* Bump app build number to 202 (mattermost#2933)

* Update jsc to intl version (mattermost#2931)

* Update redux update to use the release-5.13 branch (mattermost#2934)

* Bump app build number to 203 (mattermost#2935)

* Fix AD/LDAP & SAML profile sync properties (mattermost#2941)

* Place the new message indicator at the top of the screen (mattermost#2943)

* Place the new message indicator at the top of the screen

* Add unit tests for channel postVisibility reducer

* translations PR 20190701 (mattermost#2946)

* Bump app build number to 204 (mattermost#2955)

* MM-16442: count actual reactions before falling back to has_reactions (mattermost#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

* MM-16695 Update mattermost-redux to add additional null check (mattermost#2951)

* MM-16695 Update mattermost-redux to add additional null check

* Update mattermost-redux

* MM-16823 Fix "Freeze" after deleting cache (mattermost#2956)

* Bump app build number to 205 (mattermost#2960)

* Update device info ref (mattermost#2953)

*  Bump app build number to 206 (mattermost#2963)

* Bump app build number to 206

* Set Android targetSdkVersion to API level 28

* translations PR 20190708 (mattermost#2962)

* fix app chrashing when sending invalid slash command (mattermost#2966)

* MM-16857 Fix long posts (mattermost#2967)

* Fix android crash on Android O & P after upgrading target to 28 (mattermost#2968)

* Bump app build number to 207 (mattermost#2972)

* Temporarily disable Android source maps

* Update fastlane

* [MM-17016] Ensure Flatlist is mounted prior to calling scrollToIndex (mattermost#2977)

* Ensure Flatlist is mounted prior to calling scrollToIndex

* Address review comment

* Bump app build number to 208 (mattermost#2979)

* MM-16829 Fix for sso with server subpaths (mattermost#2991)

* Bump Version to 1.21.1 and build number to 209 (mattermost#2995)

* Bump app build number to 209

* Bump app version number to 1.21.1

* MM-16829 Fix for websocket reconnects for android

* Bump app build number to 210 (mattermost#3000)

* Fix assigning credentials during app init (mattermost#3034)

* Fix assigning credentials during app init

* remove setAppCredentials in entry screen

* Bump app build number to 212 (mattermost#3042)

* Bump app version number to 1.21.2 (mattermost#3043)

* Dispatch setDeviceToken after hydration (mattermost#3056)

* Bump app build number to 213 (mattermost#3058)

* Call scrollToIndex only if flatListRef.current is not null (mattermost#3022)

* Bump app build number to 214 (mattermost#3063)

* Check initialIndex in callback (mattermost#3065)

* Bump app build number to 215 (mattermost#3066)

* Removed the BackgroundLoad

* fix the crash for settings
ssamud added a commit to uber-archive/mattermost-mobile that referenced this pull request Oct 23, 2019
* #MI-372 updated mattermost-redux commit ID to use the latest changes (#2670)

* #MI-372 updated mattermost-redux commit ID to use the latest changes

* Updated commit ID in package lock as well

* MM-13618 Adding bot tags. (#2669)

* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.

* Generate random channel URL name from display names that don't clean into a usable name (#2679)

* MM-13151 Increase double tap delay for post action buttons (#2406)

* Use app state to disable a button when click to prevent double tap

* remove disable button state after 4000ms

* modify preventDoubleTap to have optional delayTime param

* remove local state use for button control

* remove unused method

* remove app state method to disable a button

* Update tap.js

* Update NOTICE.txt (#2685)

- Misc homepage and project info updates

* [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

* [MM-14871] Fix extraction of sender name for push notifications (#2691)

* Return empty string for sender name when not found

* Update README.md (#2692)

* Add CSRF Header in File Upload and Profile Image Set Operations (#2686)

* update commit of commonmark.js that fixes "blank spaces break markdown table" (#2694)

* Bump app build number to 184 (#2695)

* Avoid force casting items to URL (#2696)

* Remove package name from push notification content (#2700)

* [MM-14899] Support sharing of screenshots via the iOS share extension (#2697)

* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager

* [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (#2702)

* Update react-native-notifications dependency commit hash

* Add package-lock.json

* MM-14960 Use the correct icon set for channel types (#2699)

* Set canFlag to false for system messages (#2705)

* add mmjstool as dev dep (#2707)

* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request

* [MM-14191] Render emojis in Interactive Message Buttons (#2640)

* MM-14959 iOS Share Extension channel search open by default (#2698)

* Executing translation extraction script (#2703)

* Bump app build number to 185 (#2708)

* Ensure the correct value for channelIsLoading is used (#2712)

* Proposed changelog update regarding AppConfig compatability (#2688)

Make it more obvious what action needs to be taken + some readability updates

* Reorganize post state and make postsInChannel into a sparse array (#2693)

* MM-13957 Reorganize post actions (#2553)

* MM-13957 Reorganize post actions

* Update mattermost-redux

* Update mattermost-redux

* Update package-lock.json to resolve build issues

* MM-13958/MM-13959 Make postsInChannel into a sparse array (#2600)

* MM-13960 Re-add combined system messages (#2637)

* MM-13960 Re-add combined system messages

* Pass entire post to PostOptions

* Update mattermost-redux

* Update mattermost-redux

* Address feedback

* Update mattermost-redux

* add telemetry config for beta build (#2714)

* Bump app build number to 186 (#2716)

* DateHeader rendering bug fix (#2717)

* app/screens/search.js DateHeader part bug fix

* DateHeader parts fix

* v1.18 Changelog (#2671)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* 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

* MM-14417: Add messaging for channel mentions of users not in constrai… (#2711)

* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.

* Bump app build number to 187

* Bump app version number to 1.18.1

* MM-15215 fix crash caused by malformed post textbox localize string

* MM-15216 Fix crash when cookie does not set expiration date on iOS

* v1.18.1 Changelog (#2726)

* Update CHANGELOG.md

* Update CHANGELOG.md

* MM-14741 Add default option to post action dropdown (#2724)

* Reminder message (`/remind`) do not show message text on mobile. (#2710)

* Optimize png image with zopflipng lossless compression (#2682)

* 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

* [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

* [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

* [MM-14619] Remove Client4.online and related setOnline function (#2718)

* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901

* [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

* Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS

* Increase Typing animation duration and remove handleScrollToRecentPost (#2730)

* 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

* Check for null activity before calling finish (#2738)

* Delay PostTextbox animation on iOS when clearing text (#2739)

* [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

* Bump app version number to 1.19.0 (#2743)

* Bump app build number to 188 (#2744)

* [MM-12599] Implement assets for Adaptive icons (#2663)

* [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

* Remove the RN bridge from MattermostManaged (#2741)

* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners

* [MM-14777] Remove post for user after user deletes it (#2745)

* Remove post after delete

* Add unit test

* Fix check-style errors

* fix mattermostManaged event name (#2754)

* Allow user to install mattermost on sd card (#2731)

Cannot install Mattermost when there is no enough space in internal memory, So when add this line
android:installLocation="auto" 
to the manifest file user can install Mattermost on the sd card.
https://developer.android.com/guide/topics/data/install-location

* MM-14885 Android use sender_name in push notifications (#2747)

* 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

* Add native module to reset TextInput to fix bad cursors in some Android keyboards (#2753)

* MM-14030 Don't show large gifs in posts (#2750)

* MM-14030 Don't show large gifs in posts

* Re-add default argument

* MM-15284 Disable allowBackup on Android (#2756)

* Use of cached managed config in components (#2758)

* Remove outdated information from contributing file (#2759)

* [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

* Bump app build number to 189 (#2764)

* Use numbered capture over named capture (#2765)

* MM-14921 Fix iPad layout including safeAreaInsets (#2748)

* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests

* Fixes master branch from crashing when building in release mode (#2767)

* MM-15428 Fix iOS when managed config is not set (#2768)

* Bump app build number to 190 (#2769)

* MM-15428 Return empty object for native managed configuration when not set (#2770)

* Bump app build number to 191 (#2771)

* Update gems (#2773)

* MM-14958 Scroll to bottom when posting a new message (#2761)

* [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

* Update mattermost-redux (#2775)

* MM-15228 consecutive bot posts maintain the profile image (#2746)

* do not group consecutive bot posts

* fixes from make check-style

* Removed @babel/polyfill (#2776)

* [MM-15379] Avoid possible reading of .name on undefined (#2778)

* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash

* add lastPostIndex props to Thread and Permalink, and add markers for those screens (#2780)

* [MM-14887] Include all png, jpeg, and bmp MIME types (#2781)

* Include all png, jpeg, and bmp MIME types

* Update snapshot

* Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (#2782)

* Avoid possible reading of length property on undefined (#2783)

* Bump app build number to 192 (#2784)

* Update fastlane iOS beta tester link (#2785)

* 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

* 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>

* MM-15532 properly mark channel as read when reading the channel in another client (#2789)

* 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

* MM-15528: Updates to channel info for group-constrained channels. (#2786)

* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>

* Bump app build number to 193 (#2794)

* v1.19 Changelog (#2720)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Notification receipt delivery for Android and iOS (#2755)

* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response

* [MM-14751] Take group_constrained into account when adding users to channels (#2737)

* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux

* Update rnfetchblob (#2802)

* MM-15427 Google Play 64-bit requirement compliance (#2792)

* MM-15481 close post menu when replying to a message (#2797)

* Fix select default channel (#2800)

* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux

* MM-15282 Fix cutoff placeholder on Android (#2798)

* MM-15282 Fix cutoff placeholder on Android

* Feedback review

* 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

* [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (#2796)

* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation

* 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

* MM-14802 Add autocorrect when editing a post (#2810)

* Allow flagging of read-only channel posts (#2801)

* Update mattermost-redux (#2813)

* Update mattermost-redux

* Fix code so it can be parsed by mmjstool (#2816)

* Upgrade react-native-sentry (#2815)

* translations PR 20190522 (#2817)

* MM-15582 Don't show forgot password link without email/username login (#2811)

* Bump Version & Build number (#2818)

* Bump app version number to 1.20.0

* Bump app build number to 194

* Update fastlane

* Fix Build script apk location (#2819)

* move apk using the full path (#2820)

* Fix android release link (#2821)

* fix link on Android beta signup message (#2822)

* Allow drawer pan responder when switching teams (#2823)

* update react-native-device-info crash fix (#2824)

* [MM 15552] Determine number of placeholder rows from height (#2827)

* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check

* MM-15667 if post was removed exclude it from postsInChannel (#2831)

* Allow updating of isLongPost after editing message (#2829)

* Add unit test for PostBody's measurePost (#2833)

* fix build for unsigned and ios-sim-x86_64 (#2834)

* 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

* translations PR 20190527 (#2837)

* 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

* Bump app build number to 195 (#2843)

* MM-15643 Better close app when checking for pin code (#2846)

* MM-15912 Fix uploads stuck at 100% (#2847)

* configure telemetry on build (#2852)

* 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

* Bump app build number to 196 (#2853)

* MM-15959 disable android firebase analytics (#2854)

* fix server version for Android telemetry (#2857)

* Update NOTICE.txt (#2856)

- add new dependencies @react-native-community/async-storage and @react-native-community-netinfo
- misc copyright metadata updates

* translations PR 20190603 (#2859)

* MM-16013 make paperplain animation faster (#2860)

* MM-15643 Fix race condition to prompt for passcode and (#2862)

detect if passcode has been removed while the app in the background

* Fix opengraph image on tablet to account for the sidebar (#2863)

* MM-16070 Fix channel sidebar state while filtering (#2864)

* Fix file upload not completing (#2866)

* Fix file upload not completing

* Update snapshots

* Fix image preview width on tablets (#2867)

* Show broken image for inline images without dimensions (#2868)

* MM-16061 Keep unread channels in place on Tablets (#2865)

* Allow excluding archived channels in getChannelsBySections (#2871)

* Bump app build number to 197 (#2872)

* translations PR 20190611 (#2874)

* MM-16281 Fix regression on android push notification messages (#2879)

* MM-16280 Fix when post fail to send (#2880)

* MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (#2883)

* Bump app build number to 198 (#2884)

* MM-16095 Android share extension to use keychain for authentication (#2876)

* MM-16095 Android share extension to use keychain for authentication

* Remove unnecessary comment

* Update react-native-notifications (#2881)

* Add key to SlideUpPanel (#2845)

* fix ios sso cookie bug when running on top-level domain (#2858)

* [MM-14917] RN Android: Push notification settings are only saved when closing settings page (#2735)

* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma

* [MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (#2844)

* Member list items are selectable only when canManagerUsers is true

* Address review comment

* 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

* Set post list data and timestamp based on the user timezone if available (#2888)

* MM-16239 disable fields according to SAML or LDAP (#2878)

* MM-16239 disable fields according to SAML or LDAP

* fix typo

* Update react-native-device-info and fix status value: (#2892)

* translations PR 20190617 (#2891)

* Update gradle to use android-jsc as instructed (#2893)

* Bump app version number to 1.21.0 (#2894)

* Return if message is null (#2895)

* Bump app build number to 199 (#2896)

* Fix crash on Android by Updating JSC (#2900)

* MM-16432 Fix missing posts when using since API (#2901)

* Bump app build number to 201 (#2903)

* MM-16392 Split view support & hide sidebar on tablets (#2898)

* Ios accessibility fixes (#2842)

* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot

* MM-16472 Fix renderItem not returning anything (#2909)

* cherry-pick https://github.com/mattermost/mattermost-mobile/pull/2917

* translations PR 20190624 (#2919)

* MM-16463 Fix replying from push notification to a message in a thread (#2927)

* [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (#2925)

* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy

* Check if entities is nil (#2930)

* Bump app build number to 202 (#2933)

* Update jsc to intl version (#2931)

* Update redux update to use the release-5.13 branch (#2934)

* Bump app build number to 203 (#2935)

* Fix AD/LDAP & SAML profile sync properties (#2941)

* 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

* translations PR 20190701 (#2946)

* Bump app build number to 204 (#2955)

* 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

* MM-16695 Update mattermost-redux to add additional null check (#2951)

* MM-16695 Update mattermost-redux to add additional null check

* Update mattermost-redux

* MM-16823 Fix "Freeze" after deleting cache (#2956)

* Bump app build number to 205 (#2960)

* Update device info ref (#2953)

*  Bump app build number to 206 (#2963)

* Bump app build number to 206

* Set Android targetSdkVersion to API level 28

* translations PR 20190708 (#2962)

* fix app chrashing when sending invalid slash command (#2966)

* MM-16857 Fix long posts (#2967)

* Fix android crash on Android O & P after upgrading target to 28 (#2968)

* Bump app build number to 207 (#2972)

* Temporarily disable Android source maps

* Update fastlane

* [MM-17016] Ensure Flatlist is mounted prior to calling scrollToIndex (#2977)

* Ensure Flatlist is mounted prior to calling scrollToIndex

* Address review comment

* Bump app build number to 208 (#2979)

* MM-16829 Fix for sso with server subpaths (#2991)

* Bump Version to 1.21.1 and build number to 209 (#2995)

* Bump app build number to 209

* Bump app version number to 1.21.1

* MM-16829 Fix for websocket reconnects for android

* Bump app build number to 210 (#3000)

* Fix assigning credentials during app init (#3034)

* Fix assigning credentials during app init

* remove setAppCredentials in entry screen

* Bump app build number to 212 (#3042)

* Bump app version number to 1.21.2 (#3043)

* Dispatch setDeviceToken after hydration (#3056)

* Bump app build number to 213 (#3058)

* Call scrollToIndex only if flatListRef.current is not null (#3022)

* Bump app build number to 214 (#3063)

* Check initialIndex in callback (#3065)

* Bump app build number to 215 (#3066)

* Removed the BackgroundLoad

* Dev to staging of version 1.21.2 (#61)

* #MI-372 updated mattermost-redux commit ID to use the latest changes (#2670)

* #MI-372 updated mattermost-redux commit ID to use the latest changes

* Updated commit ID in package lock as well

* MM-13618 Adding bot tags. (#2669)

* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.

* Generate random channel URL name from display names that don't clean into a usable name (#2679)

* MM-13151 Increase double tap delay for post action buttons (#2406)

* Use app state to disable a button when click to prevent double tap

* remove disable button state after 4000ms

* modify preventDoubleTap to have optional delayTime param

* remove local state use for button control

* remove unused method

* remove app state method to disable a button

* Update tap.js

* Update NOTICE.txt (#2685)

- Misc homepage and project info updates

* [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

* [MM-14871] Fix extraction of sender name for push notifications (#2691)

* Return empty string for sender name when not found

* Update README.md (#2692)

* Add CSRF Header in File Upload and Profile Image Set Operations (#2686)

* update commit of commonmark.js that fixes "blank spaces break markdown table" (#2694)

* Bump app build number to 184 (#2695)

* Avoid force casting items to URL (#2696)

* Remove package name from push notification content (#2700)

* [MM-14899] Support sharing of screenshots via the iOS share extension (#2697)

* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager

* [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (#2702)

* Update react-native-notifications dependency commit hash

* Add package-lock.json

* MM-14960 Use the correct icon set for channel types (#2699)

* Set canFlag to false for system messages (#2705)

* add mmjstool as dev dep (#2707)

* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request

* [MM-14191] Render emojis in Interactive Message Buttons (#2640)

* MM-14959 iOS Share Extension channel search open by default (#2698)

* Executing translation extraction script (#2703)

* Bump app build number to 185 (#2708)

* Ensure the correct value for channelIsLoading is used (#2712)

* Proposed changelog update regarding AppConfig compatability (#2688)

Make it more obvious what action needs to be taken + some readability updates

* Reorganize post state and make postsInChannel into a sparse array (#2693)

* MM-13957 Reorganize post actions (#2553)

* MM-13957 Reorganize post actions

* Update mattermost-redux

* Update mattermost-redux

* Update package-lock.json to resolve build issues

* MM-13958/MM-13959 Make postsInChannel into a sparse array (#2600)

* MM-13960 Re-add combined system messages (#2637)

* MM-13960 Re-add combined system messages

* Pass entire post to PostOptions

* Update mattermost-redux

* Update mattermost-redux

* Address feedback

* Update mattermost-redux

* add telemetry config for beta build (#2714)

* Bump app build number to 186 (#2716)

* DateHeader rendering bug fix (#2717)

* app/screens/search.js DateHeader part bug fix

* DateHeader parts fix

* v1.18 Changelog (#2671)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* 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

* MM-14417: Add messaging for channel mentions of users not in constrai… (#2711)

* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.

* Bump app build number to 187

* Bump app version number to 1.18.1

* MM-15215 fix crash caused by malformed post textbox localize string

* MM-15216 Fix crash when cookie does not set expiration date on iOS

* v1.18.1 Changelog (#2726)

* Update CHANGELOG.md

* Update CHANGELOG.md

* MM-14741 Add default option to post action dropdown (#2724)

* Reminder message (`/remind`) do not show message text on mobile. (#2710)

* Optimize png image with zopflipng lossless compression (#2682)

* 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

* [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

* [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

* [MM-14619] Remove Client4.online and related setOnline function (#2718)

* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901

* [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

* Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS

* Increase Typing animation duration and remove handleScrollToRecentPost (#2730)

* 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

* Check for null activity before calling finish (#2738)

* Delay PostTextbox animation on iOS when clearing text (#2739)

* [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

* Bump app version number to 1.19.0 (#2743)

* Bump app build number to 188 (#2744)

* [MM-12599] Implement assets for Adaptive icons (#2663)

* [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

* Remove the RN bridge from MattermostManaged (#2741)

* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners

* [MM-14777] Remove post for user after user deletes it (#2745)

* Remove post after delete

* Add unit test

* Fix check-style errors

* fix mattermostManaged event name (#2754)

* Allow user to install mattermost on sd card (#2731)

Cannot install Mattermost when there is no enough space in internal memory, So when add this line
android:installLocation="auto" 
to the manifest file user can install Mattermost on the sd card.
https://developer.android.com/guide/topics/data/install-location

* MM-14885 Android use sender_name in push notifications (#2747)

* 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

* Add native module to reset TextInput to fix bad cursors in some Android keyboards (#2753)

* MM-14030 Don't show large gifs in posts (#2750)

* MM-14030 Don't show large gifs in posts

* Re-add default argument

* MM-15284 Disable allowBackup on Android (#2756)

* Use of cached managed config in components (#2758)

* Remove outdated information from contributing file (#2759)

* [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

* Bump app build number to 189 (#2764)

* Use numbered capture over named capture (#2765)

* MM-14921 Fix iPad layout including safeAreaInsets (#2748)

* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests

* Fixes master branch from crashing when building in release mode (#2767)

* MM-15428 Fix iOS when managed config is not set (#2768)

* Bump app build number to 190 (#2769)

* MM-15428 Return empty object for native managed configuration when not set (#2770)

* Bump app build number to 191 (#2771)

* Update gems (#2773)

* MM-14958 Scroll to bottom when posting a new message (#2761)

* [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

* Update mattermost-redux (#2775)

* MM-15228 consecutive bot posts maintain the profile image (#2746)

* do not group consecutive bot posts

* fixes from make check-style

* Removed @babel/polyfill (#2776)

* [MM-15379] Avoid possible reading of .name on undefined (#2778)

* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash

* add lastPostIndex props to Thread and Permalink, and add markers for those screens (#2780)

* [MM-14887] Include all png, jpeg, and bmp MIME types (#2781)

* Include all png, jpeg, and bmp MIME types

* Update snapshot

* Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (#2782)

* Avoid possible reading of length property on undefined (#2783)

* Bump app build number to 192 (#2784)

* Update fastlane iOS beta tester link (#2785)

* 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

* 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>

* MM-15532 properly mark channel as read when reading the channel in another client (#2789)

* 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

* MM-15528: Updates to channel info for group-constrained channels. (#2786)

* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>

* Bump app build number to 193 (#2794)

* v1.19 Changelog (#2720)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Notification receipt delivery for Android and iOS (#2755)

* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response

* [MM-14751] Take group_constrained into account when adding users to channels (#2737)

* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux

* Update rnfetchblob (#2802)

* MM-15427 Google Play 64-bit requirement compliance (#2792)

* MM-15481 close post menu when replying to a message (#2797)

* Fix select default channel (#2800)

* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux

* MM-15282 Fix cutoff placeholder on Android (#2798)

* MM-15282 Fix cutoff placeholder on Android

* Feedback review

* 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

* [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (#2796)

* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation

* 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

* MM-14802 Add autocorrect when editing a post (#2810)

* Allow flagging of read-only channel posts (#2801)

* Update mattermost-redux (#2813)

* Update mattermost-redux

* Fix code so it can be parsed by mmjstool (#2816)

* Upgrade react-native-sentry (#2815)

* translations PR 20190522 (#2817)

* MM-15582 Don't show forgot password link without email/username login (#2811)

* Bump Version & Build number (#2818)

* Bump app version number to 1.20.0

* Bump app build number to 194

* Update fastlane

* Fix Build script apk location (#2819)

* move apk using the full path (#2820)

* Fix android release link (#2821)

* fix link on Android beta signup message (#2822)

* Allow drawer pan responder when switching teams (#2823)

* update react-native-device-info crash fix (#2824)

* [MM 15552] Determine number of placeholder rows from height (#2827)

* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check

* MM-15667 if post was removed exclude it from postsInChannel (#2831)

* Allow updating of isLongPost after editing message (#2829)

* Add unit test for PostBody's measurePost (#2833)

* fix build for unsigned and ios-sim-x86_64 (#2834)

* 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

* translations PR 20190527 (#2837)

* 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

* Bump app build number to 195 (#2843)

* MM-15643 Better close app when checking for pin code (#2846)

* MM-15912 Fix uploads stuck at 100% (#2847)

* configure telemetry on build (#2852)

* 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

* Bump app build number to 196 (#2853)

* MM-15959 disable android firebase analytics (#2854)

* fix server version for Android telemetry (#2857)

* Update NOTICE.txt (#2856)

- add new dependencies @react-native-community/async-storage and @react-native-community-netinfo
- misc copyright metadata updates

* translations PR 20190603 (#2859)

* MM-16013 make paperplain animation faster (#2860)

* MM-15643 Fix race condition to prompt for passcode and (#2862)

detect if passcode has been removed while the app in the background

* Fix opengraph image on tablet to account for the sidebar (#2863)

* MM-16070 Fix channel sidebar state while filtering (#2864)

* Fix file upload not completing (#2866)

* Fix file upload not completing

* Update snapshots

* Fix image preview width on tablets (#2867)

* Show broken image for inline images without dimensions (#2868)

* MM-16061 Keep unread channels in place on Tablets (#2865)

* Allow excluding archived channels in getChannelsBySections (#2871)

* Bump app build number to 197 (#2872)

* translations PR 20190611 (#2874)

* MM-16281 Fix regression on android push notification messages (#2879)

* MM-16280 Fix when post fail to send (#2880)

* MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (#2883)

* Bump app build number to 198 (#2884)

* MM-16095 Android share extension to use keychain for authentication (#2876)

* MM-16095 Android share extension to use keychain for authentication

* Remove unnecessary comment

* Update react-native-notifications (#2881)

* Add key to SlideUpPanel (#2845)

* fix ios sso cookie bug when running on top-level domain (#2858)

* [MM-14917] RN Android: Push notification settings are only saved when closing settings page (#2735)

* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma

* [MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (#2844)

* Member list items are selectable only when canManagerUsers is true

* Address review comment

* 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

* Set post list data and timestamp based on the user timezone if available (#2888)

* MM-16239 disable fields according to SAML or LDAP (#2878)

* MM-16239 disable fields according to SAML or LDAP

* fix typo

* Update react-native-device-info and fix status value: (#2892)

* translations PR 20190617 (#2891)

* Update gradle to use android-jsc as instructed (#2893)

* Bump app version number to 1.21.0 (#2894)

* Return if message is null (#2895)

* Bump app build number to 199 (#2896)

* Fix crash on Android by Updating JSC (#2900)

* MM-16432 Fix missing posts when using since API (#2901)

* Bump app build number to 201 (#2903)

* MM-16392 Split view support & hide sidebar on tablets (#2898)

* Ios accessibility fixes (#2842)

* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot

* MM-16472 Fix renderItem not returning anything (#2909)

* cherry-pick https://github.com/mattermost/mattermost-mobile/pull/2917

* translations PR 20190624 (#2919)

* MM-16463 Fix replying from push notification to a message in a thread (#2927)

* [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (#2925)

* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy

* Check if entities is nil (#2930)

* Bump app build number to 202 (#2933)

* Update jsc to intl version (#2931)

* Update redux update to use the release-5.13 branch (#2934)

* Bump app build number to 203 (#2935)

* Fix AD/LDAP & SAML profile sync properties (#2941)

* 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

* translations PR 20190701 (#2946)

* Bump app build number to 204 (#2955)

* 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

* MM-16695 Update mattermost-redux to add additional null check (#2951)

* MM-16695 Update mattermost-redux to add additional null check

* Update mattermost-redux

* MM-16823 Fix "Freeze" after deleting cache (#2956)

* Bump app build number to 205 (#2960)

* Update device info ref (#2953)

*  Bump app build number to 206 (#2963)

* Bump app build number to 206

* Set Android targetSdkVersion to API level 28

* translations PR 20190708 (#2962)

* fix app chrashing when sending invalid slash command (#2966)

* MM-16857 Fix long posts (#2967)

* Fix android crash on Android O & P after upgrading target to 28 (#2968)

* Bump app build number to 207 (#2972)

* Temporarily disable Android source maps

* Update fastlane

* [MM-17016] Ensure Flatlist is mounted prior to calling scrollToIndex (#2977)

* Ensure Flatlist is mounted prior to calling scrollToIndex

* Address review comment

* Bump app build number to 208 (#2979)

* MM-16829 Fix for sso with server subpaths (#2991)

* Bump Version to 1.21.1 and build number to 209 (#2995)

* Bump app build number to 209

* Bump app version number to 1.21.1

* MM-16829 Fix for websocket reconnects for android

* Bump app build number to 210 (#3000)

* Fix assigning credentials during app init (#3034)

* Fix assigning credentials during app init

* remove setAppCredentials in entry screen

* Bump app build number to 212 (#3042)

* Bump app version number to 1.21.2 (#3043)

* Dispatch setDeviceToken after hydration (#3056)

* Bump app build number to 213 (#3058)

* Call scrollToIndex only if flatListRef.current is not null (#3022)

* Bump app build number to 214 (#3063)

* Check initialIndex in callback (#3065)

* Bump app build number to 215 (#3066)

* Removed the BackgroundLoad

* fix the crash for settings

* Dev (#62)

* #MI-372 updated mattermost-redux commit ID to use the latest changes (#2670)

* #MI-372 updated mattermost-redux commit ID to use the latest changes

* Updated commit ID in package lock as well

* MM-13618 Adding bot tags. (#2669)

* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.

* Generate random channel URL name from display names that don't clean into a usable name (#2679)

* MM-13151 Increase double tap delay for post action buttons (#2406)

* Use app state to disable a button when click to prevent double tap

* remove disable button state after 4000ms

* modify preventDoubleTap to have optional delayTime param

* remove local state use for button control

* remove unused method

* remove app state method to disable a button

* Update tap.js

* Update NOTICE.txt (#2685)

- Misc homepage and project info updates

* [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

* [MM-14871] Fix extraction of sender name for push notifications (#2691)

* Return empty string for sender name when not found

* Update README.md (#2692)

* Add CSRF Header in File Upload and Profile Image Set Operations (#2686)

* update commit of commonmark.js that fixes "blank spaces break markdown table" (#2694)

* Bump app build number to 184 (#2695)

* Avoid force casting items to URL (#2696)

* Remove package name from push notification content (#2700)

* [MM-14899] Support sharing of screenshots via the iOS share extension (#2697)

* Handle NSItemProvider item of type UIImage

* Create screenshot temp file with UploadSessionManager

* [MM-14830] Check for null pushNotification prior to calling sendNotificationScheduled on it (#2702)

* Update react-native-notifications dependency commit hash

* Add package-lock.json

* MM-14960 Use the correct icon set for channel types (#2699)

* Set canFlag to false for system messages (#2705)

* add mmjstool as dev dep (#2707)

* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request

* [MM-14191] Render emojis in Interactive Message Buttons (#2640)

* MM-14959 iOS Share Extension channel search open by default (#2698)

* Executing translation extraction script (#2703)

* Bump app build number to 185 (#2708)

* Ensure the correct value for channelIsLoading is used (#2712)

* Proposed changelog update regarding AppConfig compatability (#2688)

Make it more obvious what action needs to be taken + some readability updates

* Reorganize post state and make postsInChannel into a sparse array (#2693)

* MM-13957 Reorganize post actions (#2553)

* MM-13957 Reorganize post actions

* Update mattermost-redux

* Update mattermost-redux

* Update package-lock.json to resolve build issues

* MM-13958/MM-13959 Make postsInChannel into a sparse array (#2600)

* MM-13960 Re-add combined system messages (#2637)

* MM-13960 Re-add combined system messages

* Pass entire post to PostOptions

* Update mattermost-redux

* Update mattermost-redux

* Address feedback

* Update mattermost-redux

* add telemetry config for beta build (#2714)

* Bump app build number to 186 (#2716)

* DateHeader rendering bug fix (#2717)

* app/screens/search.js DateHeader part bug fix

* DateHeader parts fix

* v1.18 Changelog (#2671)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* 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

* MM-14417: Add messaging for channel mentions of users not in constrai… (#2711)

* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.

* Bump app build number to 187

* Bump app version number to 1.18.1

* MM-15215 fix crash caused by malformed post textbox localize string

* MM-15216 Fix crash when cookie does not set expiration date on iOS

* v1.18.1 Changelog (#2726)

* Update CHANGELOG.md

* Update CHANGELOG.md

* MM-14741 Add default option to post action dropdown (#2724)

* Reminder message (`/remind`) do not show message text on mobile. (#2710)

* Optimize png image with zopflipng lossless compression (#2682)

* 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

* [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

* [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

* [MM-14619] Remove Client4.online and related setOnline function (#2718)

* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901

* [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

* Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)

* Match lineHeight used in ChannelInfoHeader to PostBody's

* Apply lineHeight only for iOS

* Increase Typing animation duration and remove handleScrollToRecentPost (#2730)

* 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

* Check for null activity before calling finish (#2738)

* Delay PostTextbox animation on iOS when clearing text (#2739)

* [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

* Bump app version number to 1.19.0 (#2743)

* Bump app build number to 188 (#2744)

* [MM-12599] Implement assets for Adaptive icons (#2663)

* [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

* Remove the RN bridge from MattermostManaged (#2741)

* Remove the RN bridge from MattermostManaged

* Fix NativeEventEmitter

* Optimize for zero listeners

* [MM-14777] Remove post for user after user deletes it (#2745)

* Remove post after delete

* Add unit test

* Fix check-style errors

* fix mattermostManaged event name (#2754)

* Allow user to install mattermost on sd card (#2731)

Cannot install Mattermost when there is no enough space in internal memory, So when add this line
android:installLocation="auto" 
to the manifest file user can install Mattermost on the sd card.
https://developer.android.com/guide/topics/data/install-location

* MM-14885 Android use sender_name in push notifications (#2747)

* 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

* Add native module to reset TextInput to fix bad cursors in some Android keyboards (#2753)

* MM-14030 Don't show large gifs in posts (#2750)

* MM-14030 Don't show large gifs in posts

* Re-add default argument

* MM-15284 Disable allowBackup on Android (#2756)

* Use of cached managed config in components (#2758)

* Remove outdated information from contributing file (#2759)

* [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

* Bump app build number to 189 (#2764)

* Use numbered capture over named capture (#2765)

* MM-14921 Fix iPad layout including safeAreaInsets (#2748)

* MM-14780 and MM-14921 Fix iPad layout including safeAreaInsets

* Fix unit tests

* Fixes master branch from crashing when building in release mode (#2767)

* MM-15428 Fix iOS when managed config is not set (#2768)

* Bump app build number to 190 (#2769)

* MM-15428 Return empty object for native managed configuration when not set (#2770)

* Bump app build number to 191 (#2771)

* Update gems (#2773)

* MM-14958 Scroll to bottom when posting a new message (#2761)

* [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

* Update mattermost-redux (#2775)

* MM-15228 consecutive bot posts maintain the profile image (#2746)

* do not group consecutive bot posts

* fixes from make check-style

* Removed @babel/polyfill (#2776)

* [MM-15379] Avoid possible reading of .name on undefined (#2778)

* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash

* add lastPostIndex props to Thread and Permalink, and add markers for those screens (#2780)

* [MM-14887] Include all png, jpeg, and bmp MIME types (#2781)

* Include all png, jpeg, and bmp MIME types

* Update snapshot

* Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (#2782)

* Avoid possible reading of length property on undefined (#2783)

* Bump app build number to 192 (#2784)

* Update fastlane iOS beta tester link (#2785)

* 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

* 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>

* MM-15532 properly mark channel as read when reading the channel in another client (#2789)

* 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

* MM-15528: Updates to channel info for group-constrained channels. (#2786)

* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>

* Bump app build number to 193 (#2794)

* v1.19 Changelog (#2720)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Update CHANGELOG.md

Co-Authored-By: amyblais <amy_blais@hotmail.com>

* Notification receipt delivery for Android and iOS (#2755)

* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response

* [MM-14751] Take group_constrained into account when adding users to channels (#2737)

* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux

* Update rnfetchblob (#2802)

* MM-15427 Google Play 64-bit requirement compliance (#2792)

* MM-15481 close post menu when replying to a message (#2797)

* Fix select default channel (#2800)

* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux

* MM-15282 Fix cutoff placeholder on Android (#2798)

* MM-15282 Fix cutoff placeholder on Android

* Feedback review

* 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

* [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (#2796)

* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation

* 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

* MM-14802 Add autocorrect when editing a post (#2810)

* Allow flagging of read-only channel posts (#2801)

* Update mattermost-redux (#2813)

* Update mattermost-redux

* Fix code so it can be parsed by mmjstool (#2816)

* Upgrade react-native-sentry (#2815)

* translations PR 20190522 (#2817)

* MM-15582 Don't show forgot password link without email/username login (#2811)

* Bump Version & Build number (#2818)

* Bump app version number to 1.20.0

* Bump app build number to 194

* Update fastlane

* Fix Build script apk location (#2819)

* move apk using the full path (#2820)

* Fix android release link (#2821)

* fix link on Android beta signup message (#2822)

* Allow …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tests/Done Required tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants