mattermost-mobile/app
Rahim Rahman e0d2fba243
[MM-18766] remove deprecated lifecycle methods from post components (#4270)
* [MM-18766] removed deprecated lifecycle methods from post components

* [MM-18766] update snapshot, seems like there was a bug

* [MM-18766] refactor getBestImageUrl -> getBestImageUrlAndDimensions

- refactor getBestImageUrl to take a single argument: props
- refactor getViewPostWidth to take a single argument: props

* [MM-18766] getDerivedStateFromProps was previously returning only first prop change

- fix issue if multiple props were modified at once.

* [MM-18766] removed FastImage.preload that was supposed to be removed in the last merge.

* [MM-18766] removed getDerivedStateFromProps

* [MM-18766] fix tests based on actual component being completely re-rendered rather than prop change.

* [MM-18766] cleaning up initial changes due to no longer using getDerivedStateFromProps method

- move back getBestImageUrl and getViewPostWidth from outside of components
- keep the renaming of getBestImageUrl
- remove the use of spread operator as it is also no longer needed

* [MM-18766] one of caller to getViewPostWidth is still passing this.props

- this is no longer needed
2020-06-15 10:11:21 -07:00
..
actions MM-22852 Improve mobile modal style (#4198) 2020-06-10 15:34:08 -04:00
client MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
components [MM-18766] remove deprecated lifecycle methods from post components (#4270) 2020-06-15 10:11:21 -07:00
constants MM-21368 Notify user when editing message that's too long (#4371) 2020-06-10 13:01:40 -03:00
i18n MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
init Wrap await calls in try/catch (#4418) 2020-06-12 13:08:22 -07:00
mattermost_bucket iOS Native Share Extension (Swift) (#2575) 2019-02-26 14:31:57 -03:00
mattermost_managed MM-24446 Fix Crash on iOS with EMM enabled (#4203) 2020-04-23 06:03:10 -04:00
mm-redux MM-25782 improve channel member reducer speed to sync memberships (#4400) 2020-06-09 13:55:57 -04:00
notification_preferences Deps update (#3806) 2020-01-20 13:20:03 -03:00
push_notifications MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
reducers MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
screens Wrap await calls in try/catch (#4418) 2020-06-12 13:08:22 -07:00
selectors MM-25470 Fix emoji autocomplete results (#4344) 2020-05-26 16:03:11 -04:00
store Ensure previous state is cleared when logout (#4390) 2020-06-08 13:43:53 -04:00
styles MM-22155 ESLint configuration updates part 1 (#4311) 2020-05-20 08:27:27 -07:00
telemetry MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
utils MM-25562 Fix dismiss reaction list crash (#4353) 2020-05-27 12:45:35 -04:00
mattermost.js MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00