Commit graph

2539 commits

Author SHA1 Message Date
Claudio Costa
751bb2dfb1
Ensure full validation of Calls post props (#8279) 2024-10-24 16:10:49 -06:00
Rajat Dabade
e4dc8dbbfe
MM-59973: fix the emoji count 0 issue when archive and unarchive chan… (#8146)
* MM-59973: fix the emoji count 0 issue when archive and unarchive channels

* ref to null and initialing it

* refactor: added a safe condition

* refactor code

* more clean up

* clean-ups

* index to tosting as a key to component

* refactor code

* fix: (MM-59973) emoji count 0 update (#8256)

* reversed from all useMemo to useMemo + useEffect
* tried to include everything into useMemo was an anti-pattern
* moved back to useMemo + useEffect
* previousNumber and animateToNumber comparison has some flaw when dealing with difference length between the two

* simple fix

* fix more silly mistakes

* move _previousNumberString to constant

* Test: increase timeout-minutes to 120 for e2e test

* reverted the timeout-minutes back to 40

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-23 16:17:37 +05:30
Elias Nahum
8c7c02d298
Add support for Auth Scheme customization (#8261) 2024-10-23 08:44:12 +08:00
Joram Wilander
05f7875d22
Add tests to actions/remote/user (#8273) 2024-10-21 11:12:42 -04:00
Rahim Rahman
9338a1c479
chore: exhaustive-deps eslint rules from 'off' to 'warn' (#8272) 2024-10-21 09:06:28 -06:00
Weblate (bot)
7484583865
Translations update from Mattermost Weblate (#8277)
Automatic Merge
2024-10-21 16:44:34 +02:00
unified-ci-app[bot]
e5a7c91f1f
Bump app build and version number (#8269)
* Bump app build number to 568

* Bump app version number to 2.22.0

---------

Co-authored-by: runner <runner@Mac-1729252885614.local>
2024-10-18 08:39:18 -04:00
unified-ci-app[bot]
bfa1d93deb
Bump app build number to 567 (#8268)
Co-authored-by: runner <runner@Mac-1729240293461.local>
2024-10-18 08:29:38 -04:00
Elias Nahum
418f43cf16
Add utils/post_list unit tests (#8265) 2024-10-18 12:45:08 +08:00
Elias Nahum
eba51a73c6
Add utils/role unit tests (#8266) 2024-10-18 06:30:34 +08:00
Elias Nahum
0df47511a9
Add utils/search unit tests (#8267) 2024-10-18 06:29:49 +08:00
Tanmay Thole
f8a1a5f187
feat: Add copy button on code view (#8244)
* feat: Add copy button on code view

* docs: Update localization file

* Update app/screens/code/index.tsx

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>

* refactor: Update deps array

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2024-10-17 10:24:07 +02:00
Elias Nahum
98b8bf109f
fix bookmarks sort order when WS does not bump update_at (#8264) 2024-10-17 09:05:01 +08:00
Rajat Dabade
647b8c8eb6
MM-60705 DB migration: added update_at column to draft table for mobile (#8237)
* MM-60705 DB migration: added update_at column to draft table for mobile

* refactor: updated docs

* refactor: reverted unwanted changes and updated default value for update_at columns

* refactor: changed the condition for excepting 0 value for update_at column
2024-10-15 19:49:22 +05:30
unified-ci-app[bot]
c6583b7f90
chore: Update NOTICE.txt file with updated dependencies (#8258)
Co-authored-by: unified-ci-app[bot] <121569378+unified-ci-app[bot]@users.noreply.github.com>
2024-10-15 08:39:53 -04:00
Daniel Espino García
bc8a42b161
Native set load measured (#8242)
* Track notification loaded on native side instead of JS

* iOS details and iOS 18 changes

* Fix tests
2024-10-14 16:07:06 +02:00
Rahim Rahman
e7d597f70e
test: mitmproxy + low bandwidth + automated QA using detox (#8202)
* experimental github action

* start mtmproxy then kill it

* suspend test for now

* dont need to be in a PR to trigger

* trying again with mitmdump

* where is .mitmproxy folder?

* run with +e

* not sure why exit code 1

* if this is a better path

* let's try killing using trap?

* trying a different path

* maybe using ~  would work?

* looking at output to networksetup command

* minor mistake

* throttling bandwidth

* lets try with sudo

* missing sudo

* using mitmdump

* remove spaces

* tried diff path

* change to the proper file

* upload artifacts

* install cert

* added cert to simulator

* getting simulator UDID

* proper scoped var

* using github outputs

* getenv doesn't have IOS_SIMULATOR_UDID

* using echo command

* maybe forgot to scope outputs

* lets run the command directly

* changed to iPhone 14

* let me see all the devices

* try something new

* rearrange my steps to get cert

* getenv booted

* remove too many outputs

* using mm mobile test server

* tie it all together with detox test

* removed dependency for another job

* put dependency on a job

* simplify process even more

* add github-token on download artifact

* add run-id, hopefully that's what needed to download

* incorrect speed for download

* update to the correct dummynet syntax

* proper mitmdump flow report

* update allow-hosts

* commenting out mitmdump for now

* back to rahim-experiments

* overly commented out

* cacert not --ca-cert

* maybe i allow the wrong host?

* maybe i just forgotr to kill mitmdump after I'm done?

* using pm2

* reinstate jobs. and longer timeout for detox

* need sudo

* recording videos and limiting to 1 test

* just want to run 1 test.

* back to experimenting

* using wget

* test using chrome

* using chrome and add delay

* ok test again with detox

* go back to testing all server_login

* compare booted simulators

* few more experiments

* no \

* using github_outputs

* using fromJSON

* too many $

* can i do this another way?

* two runs to get the it assigned

* try again

* .

* trying to access devices array

* try again

* using jq

* keep it simple

* might not need outputs

* forgot pipe

* will this work?

* will first element of an array works

* see if we got the udid

* did we get it wrong?

* will this work?

* let's assign?

* we have to put into string

* ok 1 more

* will it have quotes?

* echo in an echo

* is this working?

* let's hope this works.

* it's actually using 17.4 iPhone 14 not 17.0

* broke because i add &

* removed failed step

* lowering ping and going back to 10 parallel test

* double-up ONE_SEC to see if tests will pass

* why curl failed after?

* getting more data from failures

* let's get more logs with pm and mitmdump

* more logging and improvement

* silly error!

* problem with throttling, let's figure out where we can improve

* increase timeout for low-bandwidth

* increased delay + run all tests

* lets see if this will be better for throttling

* try set +e to see if it will return failure

* check disk space.

* deleting zip and trash to free up space.

* try to do pfctl twice to see if that would help

* making bandwidth-throttling a composite action

* would 5 seconds make a diff?

* add shell

* throttle bandwidth experiment

* fix quick problem

* 5s sleep, and throttling at the right time

* the throttling was working better earlier.

* add a flush in between

* no exit, see if it works well

* trying continue-on-error

* resetting with continue-on-error vs checking for if steps before worked

* adding flush before throttling to see if it makes a diff

* put it back where we think is the best spot

* change timeout to 60 and some cleanup

* forgot a simple $

* move network throttling again to see if this is better?

* rearranging

* move throttling back to where it used to work well
making bandwidth-throttling action taking inputs

* forgot shell

* inputs not input, and continue-on-error

* getting host from site_1_url

* update the sed script

* move more steps into composite action file

* add shell

* add more shell

* action cleanup

* see if our reset network setting works

* delete unused files

* more clean up

* wrong indentation

* wrong context

* see if not having low bandwidth enabled would cause stuff to break

* will it fail on non-existent step name?

* things are failing after proxy started

* start using low_bandwidth_mode input

* incorrect use of curly bracket

* low_bandwidth_mode vs low_bandwidth

* correcting the use of curly bracket in if check

* low_bandwidth_mode correction

* why would https:// makes a diff?

* just going to start pm2 after stopping

* move things around again

* some more re-arranging

* exit 1

* rearranged too much

* clean up

* start-proxy action

* incorrect variable name

* use test_server_url instead

* reverting back to original

* use pull_request

* using env var prepend

* using existing artifact

* not in ""

* not going to prepend anymore

* incorrectly removed input instead of env

* close to final

* using original e2e-detox-template

* timeout-minutes need to be higher for low_bandwidth.

* using label instead of push to branch

* add check-label

* remove unneeded test

* renamed ci.yml back to original

* different way to remove label
remove experiment files
reinstate ci.yml

* remove experiment file

* see label again

* output labels

* another experiment

* test again

* fix issue when checking for low bandwidth

* revert changes to package.json in detox/

* changed download to upload in the description

* changes based on review

* add github.event.label.name to the group "id" per @mvitale1989 suggestion

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-14 07:56:52 -06:00
Weblate (bot)
b2240e37f5
Translations update from Mattermost Weblate (#8259)
Automatic Merge
2024-10-14 15:14:33 +02:00
Claudio Costa
fa7e7ef44d
Update calls-common (#8255)
* Bump rtc monitor interval to 10s

* Update calls-common
2024-10-11 13:47:49 -06:00
Daniel Espino García
94a7231a05
Add fixes for xCode 16 changes (#8254) 2024-10-11 17:02:45 +02:00
unified-ci-app[bot]
0549a51e38
Bump app build number to 566 (#8253)
Co-authored-by: runner <runner@Mac-1728635924924.local>
2024-10-11 08:02:58 -04:00
Abdullahi Abass
7dcb6ad4ce
fix: render channel links in threads list (#8205)
fixes: https://github.com/mattermost/mattermost/issues/27859

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-11 00:55:24 -06:00
Claudio Costa
e693431dec
[MM-45894] Calls: support for signaling media tracks using data channels (#8246)
* Replace pako with fflate

* Allow signaling through data channel

* Update calls-common
2024-10-09 16:33:33 -06:00
Lucas Reis
603ea793f9
MM-60425 Making clickable images work inside Markdown (#8215)
* fix: disables the gallery click on images inside a markdown link

* feat: removing the logic for acknowledging children that is inside link

* chore: renaming for consistency
2024-10-07 15:57:26 -04:00
unified-ci-app[bot]
1c299c4c7a
Bump app build number to 563 (#8243)
Co-authored-by: runner <runner@Mac-1728031584864.local>
2024-10-04 08:51:25 -04:00
Joram Wilander
d486f4861a
Add tests to actions/remote/team (#8241) 2024-10-03 08:18:27 -04:00
Pablo Vélez
0cbbe7266d
MM-60534 -fix rate my app broken styles (#8232)
* MM-60534 -fix rate my app broken styles

* use a simpler and more general approach
2024-09-30 18:17:11 +02:00
Weblate (bot)
197e251e0f
Translations update from Mattermost Weblate (#8238)
Automatic Merge
2024-09-30 14:44:33 +02:00
unified-ci-app[bot]
4a19e07ed9
Bump app build number to 561 (#8233)
Co-authored-by: runner <runner@Mac-1727425978022.local>
2024-09-27 08:30:15 -04:00
Elias Nahum
629683a310
update mobile app version in package-lock.json 2024-09-26 06:40:46 +08:00
lindalumitchell
35b68654f7
Update autocomplete.e2e.ts (#8231)
Removed references to now-closed issue https://mattermost.atlassian.net/browse/MM-50351
2024-09-23 21:21:15 -07:00
Weblate (bot)
250f8d04f6
Translations update from Mattermost Weblate (#8230)
Automatic Merge
2024-09-23 14:44:33 +02:00
unified-ci-app[bot]
d67199ee2d
Bump app build number to 560 (#8229)
Co-authored-by: runner <runner@Mac-1726821919831.local>
2024-09-20 08:10:27 -04:00
unified-ci-app[bot]
a4c346e8d8
Bump app build and version number (#8226)
* Bump app build number to 559

* Bump app version number to 2.21.0

---------

Co-authored-by: runner <runner@Mac-1726744671843.local>
2024-09-19 07:55:33 -04:00
lindalumitchell
8e27dcacec
Update message_reply.e2e.ts (#8225)
Remove outdated note ` -- KNOWN ISSUE: MM-50206`
2024-09-18 17:29:44 +08:00
lindalumitchell
152cdc5130
Update message_draft.e2e.ts (#8224)
Removed reference to fixed issue ` -- KNOWN ISSUE: MM-50298`.
2024-09-18 17:28:31 +08:00
Elias Nahum
f04838d9b1
open an external browser when the server config for MobileExternalBrowse is set to true (#8220) 2024-09-17 06:40:12 +08:00
Weblate (bot)
af31eed17c
Translations update from Mattermost Weblate (#8222)
Automatic Merge
2024-09-16 13:44:33 +02:00
Elias Nahum
c0f3cff531
Remove axios and detox from package.json in the root folder (#8219)
* Remove axios and detox from package.json in the root folder

* fix ts
2024-09-16 10:51:43 +08:00
Elias Nahum
991cecdeb3
Fix iPad split view (#8199)
* Fix iPad split view

* remove unused type def
2024-09-16 10:49:46 +08:00
unified-ci-app[bot]
20e0638a1f
Bump app build number to 558 (#8221)
Co-authored-by: runner <runner@Mac-1726216990647.local>
2024-09-13 08:18:23 -04:00
dependabot[bot]
cc1169c655
Bump serve-static from 1.15.0 to 1.16.2 (#8218)
Bumps [serve-static](https://github.com/expressjs/serve-static) from 1.15.0 to 1.16.2.
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-13 07:45:15 +08:00
Elias Nahum
394da4487c
Various Fixes (#8212) 2024-09-13 04:46:15 +08:00
Daniel Espino García
20d248fb99
Send notification status information to the server (#8060)
* Send notification status information to the server

* Add version and update names

* Update props names

* Use the single endpoint
2024-09-12 16:52:52 +02:00
Weblate (bot)
3a6f9809b7
Translations update from Mattermost Weblate (#8210)
* Translated using Weblate (Polish)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/

---------

Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
2024-09-09 16:25:47 +02:00
Pablo Vélez
c31ec8a711
MM-60312- rename ssoOffice 365 to sso EntraId (#8209)
* MM-60312- rename ssoOffice 365 to sso EntraId

* address pr comments, remove old icon and fix i18n
2024-09-09 11:52:18 +02:00
Daniel Espino García
f864947c7c
Remove unneeded permissions (#8201)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-06 16:25:38 +02:00
unified-ci-app[bot]
f45a7905fe
Bump app build number to 557 (#8207)
Co-authored-by: runner <runner@Mac-1725612120421.local>
2024-09-06 08:35:51 -04:00
Rahim Rahman
00e05d581e
fix: MM-58164 Search text is behind the textbox while searching (#8026)
* fix: MM-58164 search text hides behind textbox
* clean up unit test for useCollapsibleHeader
* simplify math
* unlock doesn't need to use useCallback as it doesn't have any deps
* revert changes on unlock
* using lockValue & headerOffset directly into children props
* disable scrolling to prevent scrollValue from being updated
* properly snapping flatlist to the proper spot in a few scenarios

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-05 11:28:00 -06:00
Weblate (bot)
2e46f6c015
Translations update from Mattermost Weblate (#8198)
* Translated using Weblate (German)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/de/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/zh_Hans/

* Translated using Weblate (Russian)

Currently translated at 99.8% (1181 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ja/

* Translated using Weblate (Russian)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/

* Translated using Weblate (Croatian)

Currently translated at 43.4% (514 of 1183 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/hr/

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: ja49619 <ja49619@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
2024-09-02 17:43:35 +02:00