Farhan Munshi
613ddc1250
[MM-24891] [MM-24572] Add ability to specify default value when role not found for selector ( #4277 ) ( #4287 )
...
* MM-24891 Allow permissions to have defaults set in case where roles not in state
* MM-24891 Add tests for haveIPermission
* MM-24891 Apply the defaults to more channel permission checks
2020-05-08 14:45:33 -04:00
Miguel Alatzar
2d81b497cf
[MM-23520] Port mattermost-redux ( #4088 )
...
* Remove mattermost-redux
* Move mm-redux files into app/redux
* Add @redux path to tsconfig.json
* Fix imports
* Install missing dependencies
* Fix tsc errors
* Fix i18n_utils test
* Fix more imports
* Remove redux websocket
* Fix tests
* Rename @redux
* Apply changes from mattermost-redux PR 1103
* Remove mattermost-redux mention in template
* Add missing imports
* Rename app/redux/ to app/mm-redux/
* Remove test file
* Fix fetching Sidebar GM profiles
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-17 21:12:09 -07:00
Elias Nahum
a8e3b608ad
Fix headers for ESR 5.9 ( #3738 )
...
* Fix headers for ESR 5.9
* check if reactions is defined to avoid a crash with servers without metadata
2019-12-19 21:33:28 -07:00
Matheus Cardoso
6c1c64f81d
MM-17838 Wrap reactions when they exceed screen size ( #3144 )
...
* MM-17838 Wrap reactions when they exceed screen size
* Hide add reaction button after 40 reactions
* Hide add reaction button after 40 reactions
* Fix tests
* Fix crash when post has no reactions and convert to factory
* Create constant and use a separate prop for allowing more reactions
2019-11-18 22:10:38 -03:00
Michael Kochell
1b16861174
[MM-19243] Disable reactions on read only channel ( #3404 )
2019-10-11 08:25:47 -06:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Miguel Alatzar
150253d392
[MM-16012] [MM-16084] Update screens related to settings sidebar + update SearchResultPost screen and its children ( #2913 )
...
* Update screens
* Update login tests
* Remove done
* Fix failing tests
* Update screens and components
* Check styles fix
* Update tests
* Prevent setState call after component unmounts
* Add empty setButtons func to dummy navigator
* Remove platform check
* Remove Platform import
* Update react-native-navigation version
* Add separate showModalOverCurrentContext function
* check-style fixes
* Remove overriding of AppDelegate's window
* Fix modal over current context animation
* Add showSearchModal navigation action
* Check-style fix
* Address review comments
* Update SettingsSidebar and children
* Update EditProfile screen
* Update SettingsSidebar
* Keep track of latest componentId to appear
* Track componentId in state to use in navigation actions
* Update FlaggedPosts and children
* Update RecentMentions
* Update Settings
* Store componentIds in ephemeral store
* Update AttachmentButton
* Remove unnecessary dismissModal
* Fix typo
* Check-style fix
* Address review comments
2019-06-24 12:52:08 -07:00
Saturnino Abril
af8faa8a2c
[MM-13433] Fix unnecessary rendering for reactions component and reaction list screen ( #2464 )
...
* fix unnecessary rendering for reactions component and reaction list screen
* update redux commit
2018-12-18 23:07:42 +08:00
Saturnino Abril
2fe9d8842a
[MM-11492] Add protection in accessing ".team_id" field when it's immediately accessed after the object is created ( #1963 )
...
* add protection in accessing ".team_id" field when it's immediately accessed after the object is created.
* remove lastChannelId since lastChannel is being checked already
2018-08-03 10:52:43 -04:00
Saturnino Abril
3a70e5c43f
add extra protection to those channel/object followed immediately by accessing its "channel_id" field ( #1960 )
2018-08-01 13:04:58 -04:00
Martin Kraft
0d0dfb1057
MM-11070: Adds ability to view archived channels. ( #1927 )
...
* MM-11070: Adds ability to view archived channels.
* MM-11070: Switches to existing selector.
* MM-11070: Uses boolean prop instead of object.
* MM-11070: Reuses web translations.
* MM-11070: Adds archived message to thread view. Switches to selector for postIDs of archived channels.
* MM-11070: Removed unused import.
* MM-11070: Removes edit and delete options from longpress of archived posts.
* MM-11070: Moves closure variable.
* MM-11070: Switch from hard-coded to theme color.
* MM-11070: Hides actions in header of archived channels.
* MM-11070: Updates Redux.
* MM-11070: Re-adds the 'Leave Channel' option for archived channels.
2018-07-31 15:27:38 -04:00
Jesse Hallam
8372e95d4a
add eslint-plugin-header, and --fix all ( #1726 )
2018-06-19 19:14:50 -04:00
Jesús Espino
f91abf3ea9
Advanced permissions phase 1 ( #1571 )
...
* [XYZ-45] New permissions implementation
* Changing mattermost-redux branch in packages.json
* Changed yarn.lock file to point to advanced-permissions-phase-1
* MM-9620: Add reactions permissions (#1451 )
* Fixing some code styles warnings
* Fix mobile app to use latest Mattermost redux
* Some merge errors fixed
2018-04-04 18:01:39 +03:00
Jesse Hallam
58b72302d6
update eslint's comma-dangle rule to always-multiline ( #1457 )
...
* update eslint's `comma-dangle` rule to `always-multiline`
* add check and fix scripts to package.json
* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
Saturnino Abril
0052b46c54
add reaction when user click other user's reaction from a post ( #1340 )
2018-01-08 08:41:08 -05:00
Harrison Healey
a9489dcc5f
Replace getTheme selector with one from mattermost-redux ( #1013 )
2017-10-12 08:45:17 -07:00
Chris Duarte
b6274da38a
RN-270 "Jump to conversation" filtering ( #755 )
...
* RN-270 "Jump to conversation" filtering
* Review Feedback
* Change reduce filter for member details
* Remove duplicate email push
2017-07-24 08:11:52 -04:00
Chris Duarte
9db0a38e8b
RN-153 Show emoji reactions on posts ( #745 )
...
* RN-153 Show emoji reactions on posts
* Review Feedback
* Change makeMapStateToProps in export
2017-07-17 12:27:16 -04:00