mattermost-mobile/app/components/markdown
Anurag Shivarathri 3c51b39bf4
Added "Join prompt" when sys admin clicks on perma links of private channels (#4988)
* Added join prompt when sys admin clicks on private channel perma links

* Moved isChannelMember to utils

* Update app/actions/views/permalink.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Added error messages

* Added error messages

* Moved checks to screen components

* Removed unused Alert import

* Removed unused translations and showing channel 'display' name

* fixed eslint error

* Moved private channel check logic from component to handleSelectChannelByName to avoid issues while pressing on url from different team

* Detox test WIP

* Test link fixes

* Added e2e test

* Hiding <Loading component on RN Alert as detox is unable to press on the Join button

* Updated message

* Added team membership check and auto-joining teams before viewing posts

* Fixed testcases

* Leaves newly joined team on any error while joining the channel

* Leaves the team if newly joined if cancelled the prompt

* Moved code to tapping_channel_url_link_joins_channel and refactored code

* Removed unwanted optional chaining operator

Co-authored-by: anurag shivarathri <anuragindianbraves@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-02-12 09:09:34 +05:30
..
__snapshots__ [MM-23160][MM-24633][MM-24697] Highlight Group Names 2 (#4551) 2020-07-20 10:19:18 -04:00
hashtag [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00
markdown_code_block MM-26817 Upgrade to RN 0.63 (#4566) 2020-07-20 18:08:11 -04:00
markdown_emoji Fix soft crash for edge emoji formatting (#4705) 2020-08-20 14:48:48 -04:00
markdown_image Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
markdown_link Added "Join prompt" when sys admin clicks on perma links of private channels (#4988) 2021-02-12 09:09:34 +05:30
markdown_table [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
markdown_table_cell Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
markdown_table_image Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
markdown_table_row [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
index.js [MM-23160][MM-24633][MM-24697] Highlight Group Names 2 (#4551) 2020-07-20 10:19:18 -04:00
markdown.js [MM-32734] Convert value to string to prevent crash (#5164) 2021-02-10 14:39:01 -07:00
markdown.test.js [MM-32734] Convert value to string to prevent crash (#5164) 2021-02-10 14:39:01 -07:00
markdown_block_quote.js [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
markdown_list.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
markdown_list_item.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
transform.js MM-25684 Highlight at-mention followed by a period (#4733) 2020-08-28 12:59:01 -04:00
transform.test.js MM-25684 Highlight at-mention followed by a period (#4733) 2020-08-28 12:59:01 -04:00