Commit graph

3667 commits

Author SHA1 Message Date
Elias Nahum
a6dc8fedbe
Do not recreate onViewableItemsChange when the deeplink changes (#5489) 2021-06-25 14:50:36 -04:00
Elias Nahum
47d081b216
Content safety (#5486)
* add content safety check to avoid potential crashes

* Fixes iOS YouTube video playback
2021-06-25 14:23:23 -04:00
Elias Nahum
f7071c290c
Clear cookies but keep files (#5479) 2021-06-24 18:47:37 -04:00
Joseph Baylon
afe80b6517
Detox/E2E: Fix search and pinned messages e2e (#5484) 2021-06-24 13:10:19 -07:00
Joseph Baylon
9f36d440b2
MM-35678 Detox/E2E: Add e2e for hashtags, empty mentions and reactions, jump to search (#5481)
* MM-35678 Detox/E2E: Add e2e for hashtags, empty mentions, empty reactions, jump to search

* Add missing verification

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-24 10:46:25 -07:00
Joseph Baylon
b893cc1a3b
MM-35677 Detox/E2E: Add e2e for channel link and scrolling (#5465)
* Detox/E2E: Add e2e for channel link and scrolling

* Update detox/e2e/test/messaging/channel_link.e2e.js

* Update detox/e2e/test/messaging/channel_link.e2e.js

* Update detox/e2e/test/messaging/channel_link.e2e.js

* Update detox/e2e/test/messaging/channel_link.e2e.js

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-24 10:38:50 -07:00
Elias Nahum
f7c254ef03
MM-36532 navigate to channel from any screen when channel link is pressed (#5467) 2021-06-24 12:57:18 -04:00
Elias Nahum
cb7f97e886
MM-36640 Bring back permalink view on search/recent mentions/pinned and saved posts (#5482)
* Downgrade RNN to avoid bug that cuts off permalink view on iOS

* Bring back permalink view on search/recent mentions/pinned and saved posts

* fix test snapshot
2021-06-24 12:46:02 -04:00
Elias Nahum
0a28c09710
Fix upload progress indicator when uploading multiple files at once (#5478)
* Fix upload progress indicator when uploading multiple files at once

* Don't use background task for uploads
2021-06-23 20:42:04 -04:00
Elias Nahum
bced848b8e
MM-36628 fix iOS app icon badge count (#5480) 2021-06-23 19:24:54 -04:00
Manoj Malik
c06b5ecb4f
Fixed custom status issues (#5476)
Fixed MM-36571 and MM-36601 issues by dispatching RECEIVED_ME action on websocket reconnecting
Added memoization in makeGetCustomStatus in custom status emoji component
Fixed e2e test case failing due to post header custom status emoji
2021-06-22 10:27:47 -07:00
Elias Nahum
f4f8379796
Update dependencies and setup project with node 16 / npm 7 (#5474) 2021-06-21 18:36:38 -04:00
Elias Nahum
683c6f5df7
MM-36588 rebind the correct post list to the native view (#5472) 2021-06-21 12:16:27 -04:00
Weblate (bot)
794a056028
Translations update from Weblate (#5469)
* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/zh_Hans/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/hu/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/sv/

Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2021-06-21 09:26:01 +02:00
Elias Nahum
298067ab65
Update react-native-cookies & react-native-webview + always use defaultDataStore (#5452)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-15 18:40:35 -04:00
Elias Nahum
362006db29
Bump app build number to 359 (#5458) 2021-06-14 16:23:27 -04:00
Elias Nahum
0e81e0e2a8
fix: connect websocket when the component mounts (#5456) 2021-06-14 15:48:39 -04:00
Weblate (bot)
4e2972782f
Translations update from Weblate (#5453)
* Translated using Weblate (German)

Currently translated at 86.8% (606 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/de/

* Translated using Weblate (Bulgarian)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/bg/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/hu/

Co-authored-by: Elisabeth Kulzer <elisabeth.kulzer@mattermost.com>
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com>
Co-authored-by: Zsolt Godó <zsolttokio@gmail.com>
2021-06-14 09:09:33 +02:00
Elias Nahum
d871029b9d
Bump app build number to 358 (#5450) 2021-06-11 19:04:16 -04:00
Elias Nahum
b2d233b5ed
fix: reset iOS scrollView when switching channels (#5447)
* fix: reset iOS scrollView when switching channels

* cancel animation frame after resetting the scrollview

* add useResetNativeScrollView hook
2021-06-11 18:22:38 -04:00
Elias Nahum
6335932883
1.44 fixes (#5444)
* fix: get status as soon as appstate is in the foreground

* re-render post list when theme changes

* remove invalid userIds from get status request
2021-06-11 13:56:09 -04:00
Joseph Baylon
8894ee464f
MM-35676 Detox/E2E: Add e2e for emojis and reactions, pinned messages, saved messages (#5443) 2021-06-10 09:43:50 -07:00
Elias Nahum
c7ef19d36e
MM-36269 fix post reaction handle press (#5438) 2021-06-09 15:15:26 -04:00
Manoj Malik
7cc57c2dbe
Fixed the warning about isCustomStatusEnabled prop in ChannelInfo (#5436) 2021-06-08 10:32:24 -07:00
Elias Nahum
0a4dafa127
MM-36256 avoid path traversal for Android image picker (#5432) 2021-06-08 09:11:27 -04:00
ctlaltdieliet
f2899dde6f
MM-34093 Add support for English Australian (#5411) 2021-06-08 08:24:27 -04:00
Elias Nahum
2cc4b00431
fix start since launch metric (#5433) 2021-06-07 15:16:49 -04:00
Joseph Baylon
66cc51d06e
Detox/E2E: Cleanup long post e2e (#5435) 2021-06-07 12:09:33 -07:00
Weblate (bot)
a98a9eb808
Translations update from Weblate (#5431)
* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/nl/

Translated using Weblate (Dutch)

Currently translated at 100.0% (685 of 685 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/nl/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (685 of 685 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/tr/

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/en_AU/

Translated using Weblate (English (Australia))

Currently translated at 100.0% (685 of 685 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/en_AU/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/ja/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (698 of 698 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/sv/

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2021-06-07 09:34:04 +02:00
Elias Nahum
37c74ecef0
set npm version as part of the npm-dependencies CI task (#5427)
* set npm version as part of the npm-dependencies CI task

* Set branch name to only build ios-simulator
2021-06-05 11:40:08 -04:00
Elias Nahum
e2bb6497df
Fix Fastlane Webhook (#5424) 2021-06-04 11:00:21 -04:00
Elias Nahum
e87bc86f44
Version number (#5421)
* Bump app build number to  357

* Bump app version number to  1.44.0
2021-06-04 09:50:41 -04:00
Chetanya Kandhari
e442275c6f
MM-34586 Custom status feature (#5220) 2021-06-04 08:54:31 -04:00
Elias Nahum
9f238d5ef4
Post List & post components refactored (#5409)
* Update transform to make Android's post list scroll smooth

* set start since metric when appStarted is false

* Refactor Formatted components

* Downgrade RNN to 7.13.0 & patch XCDYouTube to allow video playback

* Refactor Post list and all related components

* review suggestion rename hour12 to isMilitaryTime

* feedback review use aliases

* feedback review deconstruct actions in markdown_link

* feedback review simplify if/else statement in combined_used_activity

* Simplify if statement for consecutive posts

* Specify npm version to build iOS on CI

* Refactor network_indicator

* render Icon in file gallery with transparent background

* Increase timeout to scroll to bottom when posting a new message

* fix: scroll when tapping on the new messages bar

* fix: dismiss all modals

* fix navigation tests

* Handle dismissAllModals for iOS to prevent blank screens

* Prevent modal from dismissing when showing the thread screen in the stack

* Update app/components/image_viewport.tsx

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/utils/post.ts

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

* fix: rename selector and prop

* Fix XCDYouTube patch

* Fix posting from a thread in the right channel

* do not render reply bar on the thread screen

* close previous permalink before showing a new one

* move XCDYouTube patch to ios/patches folder

* closePermalink directly instead of using an onClose prop

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2021-06-03 11:12:15 -07:00
Amy Blais
2e34ee4a80
Update NOTICE.txt (#5415) 2021-06-03 13:04:02 -04:00
Elias Nahum
339a4b0554
Force CI to use npm 6.14.11 (#5414) 2021-06-03 12:47:05 -04:00
Weblate (bot)
32a353bd9a
Translations update from Weblate (#5412)
* Translated using Weblate (German)

Currently translated at 88.2% (607 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/de/

* Added translation using Weblate (English (Australia))

Translated using Weblate (French)

Currently translated at 95.3% (656 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/fr/

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/en_AU/

Co-authored-by: Elisabeth Kulzer <elisabeth.kulzer@mattermost.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: matthew-w <matthew-w@somehting.au>
2021-06-02 15:23:31 +02:00
Joseph Baylon
1fd4edba83
MM-35675 Detox/E2E: Add e2e for message reply (#5406) 2021-06-01 07:38:07 -07:00
Joseph Baylon
35b4091d5e
MM-35673 Detox/E2E: Add e2e for messaging (#5403) 2021-06-01 07:37:50 -07:00
Joseph Baylon
19196170dc
MM-35674 Detox/E2E: Add e2e for autocomplete and at-mention (#5404)
* MM-35674 Detox/E2E: Add e2e for autocomplete and at-mention

* Uncomment previously commented out line

* Fix verification comment
2021-06-01 07:37:34 -07:00
Elias Nahum
3181c66348
MM-35992 set android activity affinity to blank (#5408) 2021-06-01 09:36:49 -04:00
Weblate (bot)
24e968c849
Translations update from Weblate (#5410)
* Translated using Weblate (German)

Currently translated at 88.2% (607 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/de/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/nl/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/tr/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/sv/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/hu/

* Translated using Weblate (Bulgarian)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/bg/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (688 of 688 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/es/

Co-authored-by: Elisabeth Kulzer <elisabeth.kulzer@mattermost.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: Zsolt Godó <zsolttokio@gmail.com>
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com>
Co-authored-by: Elias  Nahum <elias@mattermost.com>
2021-06-01 09:04:45 +02:00
Joseph Baylon
4270148f7d
MM-35671 Detox/E2E: Add e2e for markdown table, separator, and block quote (#5399)
* MM-35671 Detox/E2E: Add e2e for markdown table, separator, and block quote

* Revert podfile

* Fix markdown block quote comment
2021-05-24 07:20:49 -07:00
Anurag Shivarathri
6e23fbe7a7
MM-32921 shared channels (#5241)
* Unable to open previews from search, pinned and mentions

* Updated Compass Icons

* Added Icon to LHS and Channel Info

* Added Icons to Manage/View Members list

* Added Icon to shared users in posts

* Added icon to channel header, fixed header style

* Added Icons in autocomplete

* WIP: Add shared shannels to browse

* Adding Shared Channels string to i18n

* Added remote organization to remote user profile

* Updated snapshot for channel header

* Added browsing shared channels

* Removed the exmpty line

* Added snapshot when user is remote

* Reverted compass icons and added icons only needed for shared channels

* Fixed i18n swapped

* Copied compass-icons from webapp

* Fixed showing shared channels as deleted after browsing them

* Added new compass ttf to android & fixed icon style for browse channel listing

* Fixed search for shared channels

* user profile snapshot updated with testId

* User list row snapshot updated with testID

* Moved shared user check to util function

* Fixed required props warning for ChannelIcon component

* Update app/screens/user_profile/index.js

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

* Removed Request related redux

* Reverted client4

* Added rest calls

* Updated snapshot

* Reverted files

* Adding back shared channels stuff to channel icon & showing shared channels only when enabled in browse channels

* Fixed misc issues

* moved empty array outside the function to avoid re-render

* Removed renaming fields

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-05-24 16:07:47 +05:30
Elias Nahum
6ea6366e1c
MM-35384 Add country variant localization support (#5397) 2021-05-20 11:58:53 -04:00
Joseph Baylon
d464f102fb
MM-35670 Detox/E2E: Add e2e for mark post unread and read (#5396) 2021-05-20 08:16:52 -07:00
Joseph Baylon
025b019840
MM-35356 Detox/E2E: Add e2e for channels list and message posting (#5390) 2021-05-17 08:41:05 -07:00
Weblate (bot)
7d2fd3d34a
Translations update from Weblate (#5391)
* Translated using Weblate (Spanish)

Currently translated at 100.0% (704 of 704 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/es/

* Translated using Weblate (French)

Currently translated at 95.8% (675 of 704 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/fr/

* Translated using Weblate (Bulgarian)

Currently translated at 100.0% (704 of 704 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/bg/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

* Translated using Weblate (German)

Currently translated at 86.5% (593 of 685 strings)

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/de/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_master/

Co-authored-by: Elias  Nahum <elias@mattermost.com>
Co-authored-by: moussetc <Petricorde@outlook.com>
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com>
Co-authored-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-05-17 09:26:05 +02:00
Joseph Baylon
f648d6b883
Patch node modules minSdkVersion affected by RN 0.64.1 upgrade (#5389) 2021-05-15 06:58:21 +08:00
Joseph Baylon
53050595dd
MM-35355 Detox/E2E: Add e2e for channels settings (#5377)
* MM-35355 Detox/E2E: Add e2e for channels settings

* Added disabling of non prepackaged plugins to init

* Fix apiGetChannelByName doc parameter
2021-05-12 08:04:01 -07:00