Commit graph

2324 commits

Author SHA1 Message Date
Michael Kochell
c1936040c3
MM-33993 Allow apps form and interactive dialogs to clear select fields (#5398)
* allow apps form and int dialogs to clear select fields

* don't show x if the field is disabled

* change down chevron to right chevron

* increase padding around close x to increase touch area

* positioning

* remove chevron and divider

* use hitSlop instead of padding. fix position of x

* lint

* types

* update type

* lint

* make onClear optional

* optional chaining

* set multiselect value to empty array on clear

* include null in type

* useCallback improvement

* fix clearing multi-selected items state issue

* fix clearing multi-selected items state issue

* lint

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-23 12:33:48 -04:00
Daniel Espino García
19c6ae86eb
Fix convert channel to private (#6568) 2022-08-12 17:09:23 -04:00
Jason Frerich
0165e2ab1f
[MM-38103] initialize select fields with the value (#5640)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-04 14:28:27 -05:00
Jean-Paul Manuel
8cbf57781b
[MM-41749] Fixed SettingsSidebar component added back to navigation stack (#6503)
Co-authored-by: Jean-Paul Manuel <jean-paulm@yoyowallet.com>
2022-08-04 09:30:06 -04:00
Claudio Costa
9c2b5133ab
[MM-43838] Calls: WebSocket reconnection support (#6497)
* WebSocket reconnection support

* Simplify

* Reposition code

* Return early if already closed
2022-07-25 18:19:55 +02:00
Christopher Poile
c1ce9260b7
handle peer destroyed error gracefully (#6479) 2022-07-21 10:49:10 -04:00
Claudio Costa
ed6daffa0c
[MM-45001] Add support for generating short-lived TURN credentials (#6404)
* Generate TURN credentials if needed

* Reduce calls to getState
2022-06-30 10:06:21 +02:00
Anurag Shivarathri
11136e7cf6
Latex fix (#6435) 2022-06-28 08:46:06 -04:00
Claudio Costa
5b0b1e9af8
Add support for using plugin when MM is served under a subpath (#6403) 2022-06-20 17:07:06 +02:00
Claudio Costa
ee38dd39ea
Add support for ICEServersConfigs (#6371) 2022-06-16 14:15:17 +02:00
Claudio Costa
bb655c8c60
[MM-44651] Implement MaxCallParticipants config setting (#6334)
* Implement MaxCallParticipants config setting

* Add test
2022-06-03 08:18:12 +02:00
Claudio Costa
23509cbb83
[MM-44155] Handle call_end event (#6316)
* Handle call_end event

* exit call screen on call end; /call end for mobile

* handle permissions before sending cmd to server; handle error

Co-authored-by: Christopher Poile <cpoile@gmail.com>
2022-06-02 10:59:11 +02:00
Christopher Poile
c74cd14713
MM-44546 -- Calls: Cloud freemium limits (#6318)
* remove API call to config/pass iceServers; leave call on ws error

* cloud limits

* fix makeStyleSheetFromTheme

* revert podfile & package-lock diffs

* update snapshots

* edge case of cloud server on calls 0.5.3
2022-06-01 19:21:10 -04:00
Christopher Poile
67c65156a7
MM-43904 - Fix: Calls batch actions (#6229)
* fix batch actions

* tests
2022-05-05 12:33:23 -04:00
Christopher Poile
912287fbe0
MM-43904 - Fix: Calls: "Access to route for non-existent plugin" error log (#6210)
* add isCallsPluginEnabled; refactor Calls.PluginId

* revert Podfile.lock changes
2022-05-03 15:02:58 -04:00
Elias Nahum
8303588d29
Show login options when using multiple SSO login methods (#6185) 2022-04-21 12:40:53 -04:00
KobeBergmans
21adcf6085
Latex rendering with react-native-math-view (#5651)
* Added a Latex code window that displays the given code using katex

* Latex is now displayed without having to go to the next screen

* MathView test

* MathView WIP:
Displays math good, but in verry small font
View does not load if there is a syntax error and we are hard stuck in the app

* Math view now is rendered properly, few working points:
Text is not fixed size, it renders in a weird size
Multi Line subscript is not working

* Latex is now rendered properly

* Fixed Error message and moved helper function to utils

* Added some padding and vertical scroll on latex screen

* Updated config option to work on real phone too

* Removed unused code and fixed tests

* Added LatexInline and tried to modify parser, not yet finished though. InlineLatexOption is not yet coded for

* Bugfixes and better line break checking

* Few margin changes for ios, also updated pod files

* padding is now dependend on system

* Add platform import

* Reverted package-lock change

* Added tests

* Bugfixes, UI tweaks and added unit test for latex util

* Added enableLatex to markdown options instead getting the state and config

* Changed the rendering a little bit, it is better but still far from perfect

* Width and height is now correctely displayed. Still not clean enough though

* Inline latex is now rendered properly for most equations

* Inline latex is now working properly

* tests for escaping and unescaping functions

* Added inline latex setting support

* Added inline latex tests

* Delete unused comment

* Added extra regex rule: there must be no word character in front of the inline latex code

* Upgraded math-view package and deleted duplicate entry from gemfile.lock

* Inline error functions are now class functions

* Updated error color to theme error color

* Latex screen now extends the code screen

* Markdown changes:
Now uses dimensions instead of windowdimensions
Removed inline latex function
extracted latex rendering into separate function

* updated latex util test

* Hardcoded latex language in latex code block

* Added proptypes and cleaned up latex code block

* Bugfix latex split lines

* ÃDeleted language prop from latex code block

* Changed commonmark packages to personal repo's

* Latex rendering now goes by commonmark

* Deleted unused function and tests

* Commonmark packages back to normal versions with patch package

* Updated commonmark patch file to right file and changed package lock to point at right repo

* Updated patch files to latest version

* Updated commonmark patch

* Fixed linter errors

* Integrety of commonmark fix

* First fix of ios problems

* Updated snapshot

Co-authored-by: Kobe Bergmans <kobe.bergmans@student.kuleuven.be>
Co-authored-by: Administrator <admin@Macintosh-3.localdomain>
Co-authored-by: kobe bergmans <kobebergmans@kobes-MacBook-Pro.local>
2022-04-19 09:16:38 -04:00
SilentYak
70d025fe1d
feat: add .m4a file preview (#6051)
This leverages the video player to play .m4a video files. m4a, mp4, m4v use the same container format so they are all compatible in all players that support mp4.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-19 09:10:29 -04:00
Christopher Poile
3739d3d2f8
MM-42320: Calls - Fix for: iOS loses calls audio after leaving 1st call and entering next (#6143)
* allow 2nd+ calls to connect to iOS microphone/audio

* peerconnection callback & index.d.ts, webrtc and incallmanager deps
2022-04-11 12:03:44 -04:00
Elias Nahum
6936d2bca8
Fix floating container using a hook inside the styles (#6146) 2022-04-08 12:42:50 -04:00
Christopher Poile
368584a1b7
MM-42320: Calls - small fix for microphone permissions (#6134)
* small fix for microphone permissions

* use standard permissions check/denied popups

* tests and i18n

* permission wording

* 18n
2022-04-06 14:51:40 -04:00
Christopher Poile
10479d1d35
MM-42821 - Calls mobile: Default calls doesn't work on mobile (#6107)
* use call config when checking for Enable/Disable and StartCall permissions

* store config, refresh after 20 minutes

* load config on startup

* batch load calls and load config on startup/reconnect
2022-04-01 10:17:48 -04:00
Kevin Sicong Jiang
0ca5627d78
MM-41909: Allow 1 char channel name (#6093)
* [MM-41909] Reduce displayname character limit to 1

* [MM-41909] Implement channel url min length check

* Use constant per comment

Co-authored-by: Kevin Jiang <>
2022-03-31 09:19:12 -03:00
Christopher Poile
2a56b6810b
MM-42790 MM-42791 - UI Polish (#6103)
* polish UI

* update snapshots

* add the '(you)' to the end of the user's own name
2022-03-30 17:45:53 -04:00
Elias Nahum
30a16d0bc1
[v1] Skip LoginOptions if only one SSO method is enabled (#6097)
* Skip LoginOptions if only one SSO method is enabled

* feedback review
2022-03-30 12:13:37 -03:00
Christopher Poile
734675978d
MM-42623 - Calls: remove Feature Flag (#6091)
* removed CallsMobile feature flag; added server version check

* added on-demand check and Alert for Calls enabled

* merge with master

* fix deps, typo, test snapshots
2022-03-29 10:54:29 -04:00
Michael Kochell
0a4ec73ee3
[MM-34233] Only refresh App bindings if apps plugin is enabled (#5673)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2022-03-28 13:45:29 -04:00
Christopher Poile
e086b19d1e
MM-42360 - Calls Mobile: Implement raise hand (#6069)
* implement raise hand

* added tests; updated tests

* spread syntax for combined styles -> array syntax

* add useCallbacks, update test snapshots

* fix dep array

* fix dep array

* sort participants based on muted and raisedHand

* sort participants by name, then by state

* fix screen sharing message

* fix test snapshots

* add monitor indicator; tweak ui

* linting
2022-03-25 15:08:28 -04:00
Daniel Espino García
df7945318e
[Apps Framework] Separate calls (#5877)
* Port https://github.com/mattermost/mattermost-webapp/pull/9263 to mobile

* Fix forms props from commands and missing error->text change

* lint

* various fixes

* fix lookups for command parser

* update app command parser

* fixes

* fixes with embedded forms

* lint and types

* remove bindings.expanded fix for cleaning bindings on render

* lint

* re-expand bindings on post update

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2022-03-24 11:03:06 -04:00
Michael Kochell
784b897d2f
use feature flag when fetching thread bindings (#6018) 2022-03-22 23:03:03 -04:00
Michael Kochell
be74987614
FriendlyDate component - Round dates to nearest 10th before taking floor (#6082)
* round dates to nearest 10th before taking floor

* round dates to nearest 10th before taking floor

* lint
2022-03-22 14:31:18 -03:00
Elias Nahum
b0f6e54660
Prevent crash when latex is used (#6064) 2022-03-19 10:11:22 -03:00
Andrey Ramirez
ca6f59729c
[MM-42533] Fix hidden custom theme (#6054) 2022-03-17 19:36:57 -03:00
Cees Jol
23f3fb10d2
Support link highlighting on capitalized link scheme (#6056)
* Support link highlighting on capitalized link scheme

* Add unit tests for urlFilter function
2022-03-16 08:51:41 -03:00
Christopher Poile
3f73514b98
MM-42403 - Calls Mobile: Join Call banner is too low on iOS (#6055)
* use device-specific measurements

* tests
2022-03-16 08:51:09 -03:00
Christopher Poile
e8e7618497
do not erase joined state on receiving calls data (#6039) 2022-03-11 09:07:06 -03:00
Wander Siemers
84d281181b
Fix time zone settings search bar (MM-23644) (#6033)
* Fix time zone settings search bar (MM-23644)
Some code improvements:
- renamed header to searchBar
- moved searchBarInput to getStyleSheet
Both of which are logical to me and are more consistent with e.g. screens/channel_members

* Fix trailing space

* Update snapshot
2022-03-09 23:48:22 -03:00
Christopher Poile
0e08d3823f
[MM-42332] Calls: Add speakerphone button (#6037)
* add speakerphone button, set speakerphone mode in redux/InCallManager

* move speakerphone activation into the actions file

* rename style

* revert local project changes

* tests
2022-03-09 08:49:15 -05:00
Carrie Warner (Mattermost)
e50986791f
MM-41988 Updated links to legacy domain about.mm.com (#5962)
* Updated links to legacy domain about.mm.com

* about.mm.com URL updates

* Fixed URL identified by QA

* mm.org and forum URL updates

* forum URL update

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-03-07 16:50:06 -03:00
Elias Nahum
c9ce61d28b
Markdown svg & image to respect size if available (#6030) 2022-03-07 15:20:07 -03:00
Elias Nahum
7a61c7f41f
Fix friendly date flaky test 2022-03-06 06:11:47 -03:00
Mylon Suren
b7a98dead9
[MM-39149] Only close sidebar when custom status is set successfully (#5988) 2022-02-21 08:24:04 -03:00
Elias Nahum
b0b4e55f21
Make iOS notifications compatible with background fetch (#5969) 2022-02-16 22:58:01 -03:00
Elias Nahum
cef3295420
Fix when SVG uri does not return data in the url (#5973) 2022-02-15 21:32:28 -03:00
Elias Nahum
4dc164a679
Gracefully handle different x-version-id being reported (#5927)
* Gracefully handle different x-version-id being reported

* feedback review

* Fix access to general entities
2022-02-07 17:51:47 -03:00
Anurag Shivarathri
b3283ec9cf
MM-37517 Thread permalink (#5758)
* Thread permalink fix

* Reverted and implemented solution by updating the props

* fix TS on selectors/entities/posts.ts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-03 12:48:43 -03:00
Elias Nahum
5ea470a235
V1 dependencies and bump to RN 0.67.2 (#5908)
* update dependencies

* eslint fixes

* Upgrade to RN 67

* update other deps

* Update to RN 0.67.2

* fix Android build (mmkv)

* Fix crash when root message is deleted from the thread screen

* Fix gif emoji playing at high speed on iOS ProMotion capable devices
2022-02-02 15:28:57 -03:00
Claudio Costa
2267f0a408
Update Calls (#5875)
* Fix adding tracks

* Use server websocket handler to do signaling

* Start using react-native-webrtc fork to fix track issues

* Update deps lock files

* Use ICE servers list from config if present

* Properly replace voice track

* Remove translations

* Use DeviceEventEmitter to handle voice events

* Fix bad checksum

* Restore non-english translations to avoid conflicts

* Address review

* Remove flaky integrity

* Improve state handling

* Update snapshots and tests

* Update call connecting logic

* Fix permissions check
2022-01-27 08:19:26 +01:00
Shaz Amjad
16d4231ccd
Fixes custom status update (#5881) 2021-12-21 09:04:19 +11:00
Matei Oprea
586f9cfbb9
[MM-11997] - Date picker should re-open on previously selected date (#5634) 2021-12-15 21:00:45 +02:00