Commit graph

441 commits

Author SHA1 Message Date
Elias Nahum
c1e3c878e3
Bump version 1.52.0 build 394 (#6201)
* Bump app version number to  1.52.0

* Bump app build number to  394
2022-04-29 18:14:53 -04:00
Elias Nahum
96256740ea
Bump version 1.51.1 build 392 (#6187)
* Bump app version number to  1.51.1

* Bump app build number to  392
2022-04-22 10:46:09 -04:00
dependabot[bot]
f665c74d2a
Bump async from 2.6.3 to 2.6.4 (#6179)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-19 11:42:56 -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
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
dependabot[bot]
018aba6ea8
Bump moment from 2.29.1 to 2.29.2 (#6153)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-10 08:04:40 -04:00
Elias Nahum
ce72fd874f
[v1] Upgrade Commonmark (#6145)
* upgrade commonmark

* Fix messages with markdown being potentially cut off

* Fix messages with markdown from potentially being cut off
2022-04-08 10:01:44 -04:00
Elias Nahum
6251c3ce2b
Bump version 1.51.0 build 389 (#6110)
* Bump app version number to  1.51.0

* Bump app build number to  389

* update fastlane & critical deps

* detox npm audit
2022-03-31 11:29:31 -03: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
Elias Nahum
75927c87d0
Bump version 1.50.1 build 388 (#6071)
* Bump app version number to  1.50.1

* Bump app build number to  388
2022-03-19 10:20:22 -03:00
Elias Nahum
b0f6e54660
Prevent crash when latex is used (#6064) 2022-03-19 10:11:22 -03:00
Elias Nahum
2349aa0441
Bump version 1.50.0 build 387 (#6045)
* Bump app version number to  1.50.0

* Bump app build number to  387
2022-03-09 16:33:53 -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
Elias Nahum
c9ce61d28b
Markdown svg & image to respect size if available (#6030) 2022-03-07 15:20:07 -03:00
Elias Nahum
21d1a67a50
dependencies audit 2022-03-06 06:30:59 -03:00
dependabot[bot]
2cbbf89d39
Bump url-parse from 1.5.6 to 1.5.8 (#6012)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.6 to 1.5.8.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.6...1.5.8)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 08:31:33 -03:00
Elias Nahum
dfbeef9fab
Bump version build 1.49.1 build 386 (#6003)
* Bump app version number to  1.49.1

* Bump app build number to  386
2022-02-23 16:00:57 -03:00
dependabot[bot]
dfbaa55e11
Bump url-parse from 1.5.4 to 1.5.6 (#5989) 2022-02-19 13:36:17 -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
1694023299
Version 1.49 Build 383 (#5938)
* Bump app version number to  1.49.0

* Bump app build number to  383
2022-02-07 18:05:36 -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
dependabot[bot]
1ec2b6a27d
Bump node-fetch from 2.6.5 to 2.6.7 (#5915)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 09:46:30 -03:00
dependabot[bot]
6eb161c4c2
Bump shelljs from 0.8.4 to 0.8.5 (#5914)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 09:45:24 -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
Elias Nahum
4c86efbcad
Version 1.48.2 build 382 (#5896)
* Bump app version number to  1.48.2

* Bump app build number to  382
2022-01-06 16:04:20 +02:00
Elias Nahum
62d1ff5744
update dependencies (#5886) 2022-01-03 10:10:01 +02:00
Joseph Baylon
92de752e2a
Detox/E2E: Fix android build command and update deps (#5879)
* Detox/E2E: Fix android build command and update deps

* fix build error with assembleAndroidTest

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2021-12-17 04:17:20 +08: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
f453c77ac6
Bump Version 1.48.1 build 381 (#5860)
* Bump app version number to  1.48.1

* Bump app build number to  381
2021-12-03 11:35:57 +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
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
Joseph Baylon
f89cd1f476
Detox/E2E: Upgrade deps (#5821) 2021-11-10 08:29:33 -08:00
Elias Nahum
ba0855659c
Fix options modal dismiss for OptionsModal (#5819) 2021-11-10 09:19:04 -03:00
Elias Nahum
cbc4d5add2
Version 1.48.0 build 378 (#5811)
* Bump app version number to  1.48.0

* Bump app build number to  378
2021-11-04 09:17:28 -03:00
Elias Nahum
8287e620d8
Upgrade to rn 0.66.1 (#5727)
* Upgrade to rn 0.66.0

* Add keys to re-render post list and channel list

* Finish dep updates and rn to 0.66.1

* upgrade more dependencies

* Fix select_server tests
2021-10-31 13:57:07 -03:00
Elias Nahum
acffc7796f
Bump to 1.47.2 Build 376 (#5783)
* Bump app version number to  1.47.2

* Bump app build number to  376
2021-10-24 15:01:23 -03:00
Elias Nahum
61c6f5693b
Fix TextInput blur crash (#5780) 2021-10-24 14:43:44 -03:00
Elias Nahum
c3cb9a5d34
Bump Version 1.47.1 build 375 (#5769)
* Fastlane build and version

* Bump app version number to  1.47.1

* Bump app build number to  375
2021-10-19 16:14:34 -03:00
Elias Nahum
e5142f8524
Fix Post Input and drawers gesture conflict (#5762) 2021-10-18 17:55:25 -03:00
Joseph Baylon
ebb00a205c
Detox/E2E: Update deps (#5747)
* Detox/E2E: Update deps

* Add package-lock.json files
2021-10-12 15:09:42 -07:00
Elias Nahum
a28a3826fa
update dependencies (#5706) 2021-10-01 11:45:53 -03:00
Elias Nahum
523777a207
Use @mattermost/react-native-paste-input to allow pasting of images & files (#5703)
* Use @mattermost/react-native-paste-input to allow pasting of images & files

* upgrade @mattermost/react-native-paste-input
2021-09-30 09:34:57 -03:00
Elias Nahum
ada6be9b7a
Update dependencies (#5686)
* Update dependencies

* Fix unsigned builds
2021-09-22 13:54:12 -03:00
Elias Nahum
2380c520d2
Bump Version to 1.47.0 (#5683)
* Bump app build number to  369

* Bump app version number to  1.47.0
2021-09-20 20:45:48 -03:00
Shaz Amjad
64223efafe
MM-28474: Custom Sidebar Categories (#5460)
* Further cleanup and fixes

Tests clean-up

Tests fixed?

Plays nicely with threads

Tests fixed

Fixes ESR and show experimental flags

Failing test fixed

DM Fix

WIP: Bottom bar UX

Fixes for unreads

Failing test

Always show current channel

Create a channel in a category!

* Unreads on top

* Various fixes

* Improves category collapsing

* Passes correct ID through

* Tests cleanup

* Redo unreads and unread-button

* Reverts to just using ids

* More unreads back to using ids

* Uses appropriate selectors for pref updates

* Unreads sorted by recency

* Fixes test for recency

* Fixes re-rendering bug

* Code review updates, websocket event debounced
2021-09-20 14:11:57 -04:00
Ashutosh Kumar
cc6e68fcce
Very Minor Change: Updated the way to fetch dependeny from a GIT Repo (#5670)
* Updated the way to fetch dependeny from a GIT Repo

Using a standard way to define dependency via a git repository.
In few system if someone doesn't use SSH way to clone repos then "github:" protocol gives out an error.

* Updated package-lock.json
2021-09-08 14:01:43 -03:00
Elias Nahum
29fd07ede6
Upgrade Dependencies (#5578)
* Dependency updates

* Ensure post list starts at the beginning on channel switch

* add missing prop to settings_sidebar test

* Update detox deps
2021-07-29 19:06:37 -04:00
Elias Nahum
f12987935c
Bump version to 1.46.0 (365) (#5569)
* Bump app build number to  365

* Bump app version number to  1.46.0
2021-07-24 21:37:28 -04:00
Daniel Espino García
4c8594d330
Add linter rules for import order and type member delimiters (#5514)
* Add linter rules for import order and type member delimiters

* Remove unneeded group

* Group all app/* imports before the internal imports

* Move app/ imports before parent imports

* Separate @node_modules imports into a different group

* Substitute app paths by aliases

* Fix @node_modules import order and add test related modules

* Add aliases for types and test, and group import types
2021-07-23 11:06:04 +02:00