Commit graph

2314 commits

Author SHA1 Message Date
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
Elias Nahum
687469b0cf
Update dependencies (#5870)
* Update dependencies

* Remove storybook env type def

* fix android build
2021-12-15 16:44:35 +02:00
Elias Nahum
b7455853e5
MM-40530 Support SVG for markdown inline images (#5869)
* MM-40530 Support SVG for markdown inline images

* Update app/components/markdown/markdown_image/markdown_image.js

Co-authored-by: Daniel Espino García <larkox@gmail.com>

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2021-12-15 16:43:45 +02:00
Elias Nahum
3e0ad378f1
Fix android broken build cause by rudderstack (#5856)
* Fix android broken build cause by rudderstack

* update dependencies
2021-11-30 11:39:12 +02:00
Elias Nahum
1b285dac49
[MM-40160] Crt gallery fix (#5833)
* Fix Gallery crash

* fix file type icons

* memoize gallery files
2021-11-22 15:17:18 +02:00
Joseph Baylon
19094f27eb
Disable logbox when RUNNING_E2E=true (#5831) 2021-11-15 13:58:23 -08:00
Anurag Shivarathri
805b90205a
MM-36687, MM-38302, MM-37598 Fix push notifications with CRT (#5669)
* initalised

* Removed unused packages

* Android: Added groupId for supporting both threadId & channelId

* Fixed ios condition check

* Removed commented code

* Removed unwanted condition

* Removed unused variable

* CRT reduced chunk size to 30, Android global threads showing GlobalThreads & iOS is_crt_enabled field is expected to be a boolean

* Update android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java

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

* Misc fixes

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 10:42:05 +05:30
Elias Nahum
a570fdea24
replace account-group-outline with account-multiple-outline compass icon (#5826) 2021-11-11 16:22:54 -03:00
Jesús Espino
8ef65d8b24
Voicechannels (#5753)
* Some extra work on voice channels interface

* Fixing some TODOs

* Improving styling of call in channel

* Improve calls monitoring

* Replacing some of the fontawesome icons with the compass ones

* Improving the layout

* Migrating to webrtc2 for unified plan

* Add screen on and off behavior

* Adding incall manager plugin

* Moving everything into the products/calls folder

* Make products modules routes relatives

* Make products modules routes @mmproducts

* Removing initiator parameter

* Removing trickle parameter

* Simplifying code

* Removing underscore from private variables

* Removing underscore from private things

* More simplifications

* More simplifications

* More simplifications

* Changing sha sum for mmjstool

* Fixing typo

* Migrating simple-peer to typescript

* Migrating simple-peer to typescript

* Improving the size of the screen share

* Adding feature flag to disable the calls feature in mobile

* Fixing some tests

* Removing obsolte tests

* Added call ended support for the post messages

* Fixing some warnings in the tests

* Adding JoinCall tests

* Adding CallMessage tests

* Adding CurrentCall unit tests

* Adding CallAvatar unit tests

* Adding FloatingCallContainer unit tests

* Adding StartCall unit tests

* Adding EnableDisableCalls unit tests

* Adding CallDuration tests

* Improving CallDuration tests

* Adding CallScreen unit tests

* Adding CallOtherActions screen tests

* Fixing some dark theme styles

* Fixing tests

* More robustness around connecting/disconnecting

* Adding FormattedRelativeTime tests

* Adding tests for ChannelItem

* Adding tests for ChannelInfo

* Adding selectors tests

* Adding reducers unit tests

* Adding actions tests

* Removing most of the TODOs

* Removing another TODO

* Updating tests snapshots

* Removing the last TODO

* Fixed a small problem on pressing while a call is ongoing

* Remove all the inlined functions

* Replacing usage of isLandscape selector with useWindowDimensions

* Removed unnecesary makeStyleSheetFromTheme

* Removing unneded  properties from call_duration

* Fixing possible null channels return from getChannel selector

* Moving other inlined functions to its own constant

* Simplifiying enable/disable calls component

* Improving the behavior when you are in the call of the current channel

* Adding missing translation strings

* Simplified a bit the EnableDisableCalls component

* Moving other inlined functions to its own constant

* Updating snapshots

* Improving usage of makeStyleSheetFromTheme

* Moving data reformating from the rest client to the redux action

* Adding calls to the blocklist to the redux-persist

* Fixing tests

* Updating snapshots

* Update file icon name to the last compass icons version

* Fix loading state

* Only show the call connected if the websocket gets connected

* Taking into consideration the indicator bar to position the calls new bars

* Making the MoreMessagesButton component aware of calls components

* Updating snapshots

* Fixing tests

* Updating snapshot

* Fixing different use cases for start call channel menu

* Fixing tests

* Ask for confirmation to start a call when you are already in another call

* Update app/products/calls/components/floating_call_container.tsx

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

* Memoizing userIds in join call

* Applying suggestion around combine the blocklist for calls with the one for typing

* Adding explicit types to the rest client

* Removing unneeded permission

* Making updateIntervalInSeconds prop optional in FormattedRelativeTime

* Making updateIntervalInSeconds prop optional in CallDuration

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-11-11 11:32:39 +01:00
Elias Nahum
ba0855659c
Fix options modal dismiss for OptionsModal (#5819) 2021-11-10 09:19:04 -03:00
Carrie Warner (Mattermost)
fae944c208
Updated Jump to to match webapp (#5797)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 11:13:11 -03:00