Guillermo Vayá
972bd34da6
[MM-62700] User Attribute types ( #8903 )
...
* add basic types to user_profile
* fix storing multiselect in DB
* fix storing multi-select on db
* add tests
* add tests for select-multiselect
* imporove testing
* improve intl, add tests
* address comments and tests
* review comments
* more test refactoring
* remove styling tests
* remove styling tests
* small improvements
* nitpick
* improve messaging
* safer stringify
* fix tests
2025-06-12 10:59:13 +02:00
Daniel Espino García
9fcc6e580d
Fix GM/DM unread threads highlighting all teams as unreads ( #8905 )
...
* Fix GM/DM unread threads highlighting all teams as unreads
* Use options object instead of boolean flags
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-06-10 15:30:58 +02:00
Rahim Rahman
705ed603bc
feat(MM-64361): categoryChannels update ONLY when necessary ( #8880 )
2025-05-29 13:20:19 -06:00
Guillermo Vayá
db569fe2c3
[MM-62565] Custom Profile attributes websocket changes ( #8758 )
...
* user_info websocket listening
* add to edit profile
* add tests
* fix user_info test
* improved types
* add websocket tests
* fix tests to adapt to the database
* temp
* fix test, remove unneeded file
* Update app/actions/remote/custom_profile.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix test and storing fields and attributes
* consistency
* remove await from loop
* remove db from component
* simplify functions
* address reviews
* adress review comments
* fix promises not being fulfilled before ordering
* fix tests
* address comments
* address review comments
* test_helper
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-27 16:24:40 +02:00
Lucas Reis
5838887066
Custom Emojis not updating on application ( #8853 )
...
* feat: add custom emoji deletion logic to handleCustomEmojis method
* test: add custom emoji deletion logic to HandleCustomEmojis test case
* fix: improve custom emoji deletion logic
2025-05-23 14:58:51 +02:00
Pablo Vélez
84a1520698
Mm 63935 abac end user indicators db isolated changes ( #8860 )
...
* MM-63935 - abac end user indicators db changes
2025-05-15 00:25:47 +02:00
Elias Nahum
934ed2a773
Revert "MM-63935 - abac end user indicators db changes ( #8849 )" ( #8859 )
...
This reverts commit d838f74273 .
2025-05-15 06:15:20 +08:00
Pablo Vélez
d838f74273
MM-63935 - abac end user indicators db changes ( #8849 )
...
* MM-63935 - abac end user indicators
* rename policy variables to clearly indicate are from abac
* update attributes hook to cache processed data
* use policyEnforce property
* add missing type
* rename policy_enforced to abac_policy_enforced part 1
* add channel policy enforced type
* fix translation file
* remove unnecesary stop propagation
* MM-63935 - abac end user indicators db changes
* rename the policy name to clarify which policy does refer to
* update property name and add documentation to clarify intention
* rename policy_enforced to abac_policy_enforced db changes side
2025-05-14 23:55:47 +02:00
Elias Nahum
f320dd65ad
Add is_blocked to FileModel ( #8842 )
...
* Add is_blocked to FileModel
* fix type in the docs
* use correct type in docs
2025-05-07 15:33:04 +08:00
Daniel Espino García
b0df5edc1a
Fix category sorting difference between mobile and web ( #8828 )
2025-05-06 09:51:06 +02:00
Rajat Dabade
f75c50ad2b
Feature schedule posts ( #8509 )
2025-04-14 22:08:59 +05:30
Guillermo Vayá
6a060cd505
[MM-62565] DB only custom profile attributes and fields ( #8739 )
...
Database only
2025-04-09 15:35:27 +02:00
Harshil Sharma
6480fe52aa
channel banner DB migration ( #8733 )
...
* channel banner DB migration
* Updated database docs
2025-04-04 12:24:17 +05:30
Daniel Espino García
85e01a7fb6
Add model mocks to TestHelper ( #8715 )
...
* Add model mocks to TestHelper
* Address feedback
2025-03-28 09:40:08 +01:00
Daniel Espino García
802a67c4f2
Enforce names for singleton imports ( #8639 )
2025-02-27 12:46:17 +01:00
Daniel Espino García
46f1cf3969
Check file id instead of metadata for file removal ( #8549 )
2025-02-03 15:02:28 +01:00
Daniel Espino García
438edd96f6
Fix edit attachments ( #8468 )
...
* Fix edit attachments
* Address feedback
2025-01-17 12:41:14 +01:00
Elias Nahum
2f3dfbbbfa
Update dependencies and upgrade to RN 0.76.5 ( #8421 )
...
* update dev deps
* partial update dependencies
* update watermelondb
* update rn to 0.76.5, expo to 52.0.18 and others
* upgrade android firebase
* upgrade detox deps
* fix package-lock.json
* update emm and paste-input
* update turbo-log
* update network library
* fix tests
* review feedback
* fix Keyboard blocking signIn button
* Fall back to iphone 14 iOS 17.2 simulator as app crashes on iOS 17.4
* changes in deleteCredentialsForServer is causing a crash
* withOptions x2 clearly is wrong
* re-add cli-platform-apple fix
* fix: RN 0.76.5 issue with bottom sheet disappearing (#8478 )
* experiment, using view vs BottomSheetView
* revert previous & try disabling enableDynamicSizing
* revert an unintended removal
---------
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-16 07:11:32 -07:00
Daniel Espino García
4b068889e7
Add some improvements to thread handling ( #8407 )
...
* Add some improvements to thread handling
* Add missing changes
* Android changes
* iOS changes
* Avoid copys
* Refactor getReplyAt
2025-01-16 11:48:28 +01:00
Daniel Espino García
f911a29e4c
Fix MM-61710 ( #8368 )
2024-11-27 16:18:08 +01:00
Elias Nahum
ea2cb45a18
Login improvement ( #8306 )
...
* refactor to improve requests on login
* include in team sidebar order by display name teams not present in the order preference
* Fix iOS reload while developing
* fix code causing tests to fail
* feedback review
* update network-client
2024-11-13 08:06:12 +08:00
Rahim Rahman
41ab86cd2d
fix(MM-53762): missing file and reaction ( #8284 )
...
* fix: missing file and reaction
* update import
* simplify code
* update post test to show the changes fix emoji and reaction
* clean up test
2024-10-30 14:55:34 -06:00
TheoForger
e932cf30a0
Add Index to 'type' column in 'Post' table ( #8278 )
...
* update `Post` table schema and migration plan to index `type` column
* use `unsafeExecuteSql()` for adding index during migration
* Update SQL query to create index
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Update docs
* Remove `UNIQUE` from SQL query
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2024-10-26 14:14:56 +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
Elias Nahum
b330847d95
Channel Bookmarks ( #7817 )
2024-07-18 09:10:28 +08:00
Christopher Poile
92bdb2847b
[MM-57486] [MM-58008] Calls: Mobile ringing for incoming calls ( #7984 )
...
* notification ringing, settings screen, native code patch, ringing mp3s
* i18n
* play preview on first press
* prevent playing from background (only affects Android) to match iOS beh
* stop ringing/vibration on entering background
* ring when coming back from background and new incoming call is present
* no push notification sound when it's a call; improve ringing
* move sounds to asset folder; copy on postinstall for android bundling
* make Ringtone type a string enum
* make Android ring async + await ring and stop; changes from PR comments
* missing fields after merge
* release lock on an exception
* cancel sample ringing when turning notifications off
* copy sound files for android build
* typo
* update snapshots
* testing if the problem is copying the mp3 files
* fix android mp3 assets when building for non-release
* add sounds to .gitignore
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2024-07-03 10:22:46 -04:00
Elias Nahum
b8c088cc70
Upgrade RN as well as update or replace other dependencies ( #8011 )
...
* start upgrade to RN 74
* migrate react-native-fs to expo-file-system
* exclude expo-asset module
* fix database manager remove directory
* fix: android network helper
* include expo on android
* temporarily disable android dep lock
* replace react-native-create-thumbnail with expo-video-thumnails
* update patches file version
* fix android build on 74
* create local library to replace MattermostManaged, Notifications and SplitView modules with new arch support
* migrate app to use new mattermost-rnutils library
* remove unused flipper class for android unsigned
* fix mattermost-rnutils android foldedObserver lifecycle
* use mattermost-rnutils on Android
* use mattermost-rnutils on iOS
* path react-native-navigation to not crash when activity is not NavigationActivity
* create local library for android share extension with new arch support
* Replace ShareModule with @mattermost/rnshare library
* remove ShareModule from android native code
* update react-intl
* update nodejs to 20.x.x npm to 10.x.x and dev deps
* update @gorhom/bottom-sheet
* use MattermostShare conditionally based on the platform
* update @react-native-camera-roll/camera-roll
* remove unused react-native-calendars
* fix metro config
* fix terminate session race condition
* remove unused analytics
* replace react-native-device-info with expo-application and expo-device
* update @react-native-clipboard/clipboard
* update @react-native-community/datetimepicker
* update @react-native-community/netinfo
* update @sentry/react-native
* update react-native-document-picker
* update react-native-gesture-handler
* update react-native-share
* update react-native-svg and react-native-svg-transformer
* update react-native-vector-icons
* update babel
* update react-native-shadow-2
* update semver
* remove react-native-svg-transformer and convert svg files to svg components
* fix @mattermost/rnshare new-arch build on android
* remove react-native-create-thumbnail resolution in build.gradle
* create @mattermost/hardware-keyboard library to replace hw-keyboard-events
* fix hardware-keyboard library
* fix rnutils library
* create @mattermost/keyboard-tracker library
* replace react-native-keyboard-tracking-view with @mattermost/keyboard-tracker
* fix: rnutils to not crash on lateinit context
* fix: rnutils delete database
* revert changes to session_manager
* Removed react-native-webview and added expo-web-browser instead
With expo-web-browser we no longer need the webview for SSO login
the SSO login is now done by using "custom Chrome tabs" on Android
and ASWebAuthenticationSession on iOS
* remove patch for react-native-keyboard-tracking-view
* replace react-native-linear-gradient with expo-linear-gradient
* replace react-native-in-app-review with expo-store-review
* fix: shared group database directory on ios
* replace react-native-fast-image with expo-image
* remove unusued type def for react-native-keyboard-tracking-view
* replace react-native-elements and react-native-button with @rneui
* node version
* update sizzling methods
* fix tests using jest-expo
* replace jail-monkey with expo-device
* update babel deps
* update typescript eslint
* update rn and expo
* react-native-document-picker @react-native-camera-roll/camera-roll @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context
* update patches
* update @sentry/react-native
* upgrade react-native-navigation
* update expo & expo-image
* upgrade to working version of @sentry/react-native
* update node, cocoapods, bundler, fastlane versions
* @testing-library/react-native and eslint-plugin-jest
* fix: FloatingTextInput causing a crash with reanimated
* update sentry, localize, @types/lodash and uuid
* fix floating text input label
* update react-native-video
* fix: cannot calculate shadow efficiently on some components
* fix: reduce motion warning for bottomSheet
* fix: shadow on YouTube component
* update react-native-webrtc expo and @typescript-eslint
* audit fix
* fix swizzling bad merge
* temp use of github dependency for @mattermost libraries
* feedback review
* feedback review
* npm audit fix
* update bundle deps
* update @mattermost/react-native-turbo-log
* update deps
2024-06-19 09:33:45 +08:00
Elias Nahum
3653df354d
Revert "Channel Bookmarks ( #7750 )" ( #7816 )
...
* Revert "Channel Bookmarks (#7750 )"
This reverts commit 2c5c878829 .
2024-02-07 07:52:55 +08:00
Elias Nahum
2c5c878829
Channel Bookmarks ( #7750 )
2024-02-05 17:07:01 +08:00
Elias Nahum
de57c343f0
MM-55621 fix layout for tablets and foldables ( #7697 )
...
* MM-55621 fix layout for tablets and foldables
* feedback review
2023-12-05 11:08:43 +08:00
Elias Nahum
edef4ec4a3
Update libraries and dependencies ( #7678 )
...
* update js dependencies
* update react-native libraries
* update watermelonDB
* update RN to 0.72.7
* update fastlane
* fix remove_markdown/at_mention import
* update mattermost libraries
* update fastlane deps
* remove haptic-feedback patch
* update okhttp to 4.12.0 and patch netinfo to accurately identify VPN connections
* create ImaegStyles intersection type
2023-11-25 07:46:13 +08:00
M-ZubairAhmed
4b5489c7a7
[MM-53810] Add mobile markdown support for highlighting without notifications without configuration ability ( #7663 )
2023-11-23 17:11:06 +08:00
Harrison Healey
1a031cdbbe
MM-54887 Fix category order being reversed after moving a channel ( #7628 )
2023-10-24 16:21:14 -04:00
Harrison Healey
31eb0ca489
Fix handlePreferences warning ( #7556 )
...
* Fix handlePreferences warning
* Fix filtered array potentially being undefined
2023-09-28 14:51:01 -04:00
Daniel Espino García
ff601982b9
Add some performance improvements ( #7481 )
...
* Add some performance improvements
* fix tests
2023-08-07 09:43:00 +02:00
Elias Nahum
ef2c12e954
Update Dependencies ( #7409 )
...
* dev dependencies
* update deps
* update wdb
* update more deps
* update detox deps
* update logs for database batch
* fix jest setup
2023-06-21 13:40:23 -04:00
Daniel Espino García
c99861d728
Use message source on post edit ( #7325 )
...
* Use message source on post edit
* Fix tests and bugs
2023-05-11 14:18:07 +02:00
Daniel Espino García
30706382a0
Improve post chunk handling ( #7309 )
...
* Improve post chunk handling
* Remove unneeded merge and improve post list handling
* Fix unneeded requests
* Address feedback and fix lint
2023-04-27 16:04:46 +02:00
Kyriakos Z
ab4f65020a
[MM-49540] Message Priority Phase 3 ( #7142 )
...
* Init
* i18 and types
* Acknowledge button, api
* Ack button + display ackd users
* Saves priority on draft and addresses some comments
* Addresses review comments round 2
* Moves fetching userprofiles upon opening ACKs
* Adds metadata column in drafts table
+ Addresses some more review comments.
* Small refactor according to review comments
* Addresses some review comments
* Addresses some review comments
* Uses local action when ACKing
* Fixes first time selecting priority and other
* Updates snapshots
* Fixes i18n
* Fixes ts errors
---------
Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-27 11:22:03 +00:00
Elias Nahum
784b05fe97
Upgrade Dependencies ( #7299 )
...
* upgrade reanimated
* update devDependencies
* upgrade react-intl
* update react-native and some dependencies
* update react-native-permissions
* update RN
* use Share sheet for Report a problem
* update Sentry
* remove step to downloadWebRTC
* update detox deps
* feedback review
2023-04-21 12:16:54 -04:00
Kyriakos Z
6472ce1247
MM-49540: drafts migration adding metadata ( #7240 )
...
* MM-49540: drafts migration adding metadata
Adds a drafts table migration adding the column "metadata".
This column is going to be primarily used to store the draft's
metadata priority field.
* Addresses review comments
2023-03-30 12:42:52 +03:00
Ashish Dhama
fa32301c1e
fix comments
2023-03-22 15:52:47 +05:30
Ashish Dhama
b42c05f226
fix test case
2023-03-22 15:49:55 +05:30
Ashish Dhama
763df58ef8
add files count column in channel info table and db migration
2023-03-22 15:36:57 +05:30
Elias Nahum
fe916ec740
Refactor category channels to react to setting changes and apply the correct order ( #7170 )
...
* Refactor category channels to react to setting changes and apply the correct order
* feedback review
2023-03-03 15:53:29 +02:00
Elias Nahum
6def5d9610
Process notifications when the app is in the background and other perf improvements ( #7129 )
2023-02-15 17:08:19 +02:00
Daniel Espino García
980c31f40f
Remove watermelondb limitation on updating an already updated model ( #7067 )
...
* Remove watermelondb limitation on updating an already updated model
* Add logic to handle different prepare states and improve logging
* fix tests
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2023-02-03 17:11:57 +02:00
Elias Nahum
82f0b014f4
Update RN and deps to fix ANR issues ( #7078 )
2023-02-02 14:27:42 +02:00
Elias Nahum
64a59aad55
Filter unused preferences ( #7015 )
...
* small preferences refactor
* filter unused preferences and fix removal of preferences in the db
* Feedback review
2023-01-30 21:00:19 +02:00