* 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>
* 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
* [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 <>
* 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
* 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>
* 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
* 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>
* 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
* 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>
* 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
* MM-37934: adds CRT channel notification preferences
Adds push notification preferences per channel for CRT replies.
These are only enabled when push notifications for root messages
are set to 'mention', in any other case we don't show the switch.
* Adds another test case
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Add multiselect to Apps Forms
* Address feedback
* Add selected information and change button name
* Fix styles
* Add missing semicolon and change currentList to currentSelected.
* Address UX feedback
* Fix test
* Address feedback
* Fix snapshots
* Potential fix for flaky test
* Fix iOS back button
* Address feedback
* Fix tests
* Add separator and scroll to bottom on selected items
* Use setTimeout for scroll and also scroll on unselected
* Fix lint
* Fix tsc
* Fix tests
* fixes MM-37294 MM-37296 MM-37297
* Added conditions to check for post & thread existence
* Update app/mm-redux/selectors/entities/threads.ts
Co-authored-by: Kyriakos Z. <3829551+koox00@users.noreply.github.com>
* type fix
* Never disabling Mark All as unread
* Added follow/unfollow message for not yet thread posts
* Test case fix for mark all as unread enabled all the time
* Removed hardcoded condition
* Fixed MM-37509
* Updated snapshot for sidebar
* Global thread actions init
* Added options
* Update post_options.js
* Test cases fix
* Added border bottom for each thread option
* Update test case
* Reverting snapshot
* Updated snapshot
* Moved options to screens & removed redundants translations
* Reusing post_option for thread_option
* Component name changed to PostOption from ThreadOption
* Snapshot updated
* Removed factory
* Update app/screens/thread_options/index.ts
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Update app/screens/thread_options/index.ts
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Kyriakos Z. <3829551+koox00@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* New messages line in threads & Pull to refresh for global threads
* Updated snapshot
* Using postlist's RefreshControl component
* Updated threadlist snapshot
* Reverting snapshot
* Updated Snapshots
* Snapshots updated
* Added 'thread last viewed at' to handle new messages line correctly
* Lint fix
* Updated snapshots
* Reverted comparision check
* Remove unused code
* Batching actions
* Do not add new message line for self messages
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Add plugin oauth support
* Fix types
* Switch go to screen by show modal
* Add content width metadata to show correctly the sites
* Remove unneeded metadata
* Fix tsc
* Fix lint
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Ensure post options always have the bindings for its channel
* Mimic webapp model
* Address feedback
* Add return to validate bindings
* Address feedback
* Use empty bindings constant to avoid rerenderings
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
* Add multiteam mentions and saved posts
* Minor fix
* Fix long names
* Add tests, improve separation styling, revert changes on the flagged posts client, and omit the team name when the user only belongs to one team
* Fix separator on iOS
* Update snapshot
* Fix separator
* Fix snapshot
* Differentiate styling between iOS and Android
* Change channelTeamName to teamName
* 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
* MM-37781: Only check deprecated config settings if server is older than v6.
* Feedback review
* Add isMinimumServerVersion helper for iOS Native
* MM-37781: Adds missing parameters.
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* new themes and theme type updates
* update theme processing
port newer functionality from webapp
* update theme UI
including new svg-based thumbnail
* lint fixes
* update snapshots and tests
* update theme tile border approach
* remove unused path component
* remove old variable typo
* remove old variable type from theme type
* lint and snapshot updates
* update snapshots
* MM-36980: Opens the thread on push notification
This commit enables tapping on a push notification for a reply to open
the thread.
This is done only if the user has CRT set to 'on'.
* Refactor, and handle in app notifications
* Minor change
* Fixes erroneous check
* Fixes on dismiss in app notification
* Fixes in app push notification for CRT
* Adds CRT notification settings for android
Adds support for CRT (*_threads) notification settings (notify_props).
Adds android comoponents to toggle those settings for push notifications
and email notifications.
* Adds CRT notification settings for iOS
Adds iOS components to toggle those CRT notifications settings
for push notifications and email notifications.
* Fixes bad JSON and intl ids
* Fixes i18n ids
* Fixes tests
* Adds email_threads to the default notify_props
* Fixes push_threads notify_prop default value
* Fixes style, and channel missing on thread open
* Fixes test
* Fixes click notification to open thread
Previous handling of opening the thread on notification clicked fell
into an infinite loop when the app was closed.
This commit fixes that by adding the post to selectedPostId reducer and
then emitting an event to open the thread on channel_base, and only if
the app was started by the notification.
When the app is in the background emitting the event from
handleNotification works just fine.
When the app is in the foreground the notification clicked gets handled
elsewhere and this commit does not change that.
* Removes reply settings when CRT is ON
"Mentions and Replies" section becomes just "Mentions" when the user has
the Collapsed Reply Threads set to "ON".
* Fixes prop types
Co-authored-by: Kyriakos Ziakoulis <koox00@Kyriakoss-MacBook-Pro.local>
* MM-37840 do not mark channel as read when clearing push notifications
* MM-37841 prevent from setting the edit post screen buttons with every key press