Commit Graph

375 Commits

Author SHA1 Message Date
master7
809a2d8e2c Translated using Weblate (Polish)
Currently translated at 100.0% (989 of 989 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/
2023-02-07 11:15:09 +02:00
Kaya Zeren
7c611f9854 Translated using Weblate (Turkish)
Currently translated at 100.0% (989 of 989 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-02-07 11:15:09 +02:00
MArtin Johnson
336f6bab91 Translated using Weblate (Swedish)
Currently translated at 100.0% (989 of 989 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/
2023-02-07 11:15:09 +02:00
Sajjad Jazini
63686f4fac Translated using Weblate (Persian)
Currently translated at 85.1% (842 of 989 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-02-07 11:15:09 +02:00
Tom De Moor
ed28bd8733 Translated using Weblate (Dutch)
Currently translated at 100.0% (989 of 989 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-02-07 11:15:09 +02:00
MArtin Johnson
e78f67509d Translated using Weblate (Swedish)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/
2023-02-07 11:15:09 +02:00
master7
74aa4bb04e Translated using Weblate (Polish)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/
2023-02-07 11:15:09 +02:00
Tom De Moor
4e7bf17dcc Translated using Weblate (Dutch)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-02-07 11:15:09 +02:00
Sajjad Jazini
17046ab261 Translated using Weblate (Persian)
Currently translated at 86.2% (840 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-02-07 11:15:09 +02:00
Claudio Costa
ab50164d34 [MM-49996] Add /call recording slash command (#7062)
* Add  slash command

* Fix alert

* Implement alert for recording errors

* Default locked
2023-02-06 21:14:22 -06:00
Jason Frerich
218f98e3e0 [Gekidou - MM-47653] Implement Manage Members Screen (#6771)
* move user_list to component

* start the modal from create_direct_message

* initial commit

* Add managing options to user profile

* s/showManage/showManageMode/

* simplify

* use helper functions

* add dependency

* fix togglling manage/done button

* remove close button in navbar

* remove close button. The only exit from this screen is the back button

* utilize LeaveChannelLabel component actions

* nit

* nit

* slight refactor

* return earlier if not showManageMode

* use defineMessages

* don't modify leave channel component

* add manage_members_label component

* rename variables to imply manage actions

* remove user from channel on server and locally in channel membership

* prevent managing yourself. In V1, this is done by not allowing you to
select yourself for channel removal

* remove useReducer

* - fix typography
- fix icon size
- don't allow tapping on yourself in manage mode

* sort props

* sort props

* sort props

* - combine try blocks
- use getServerDatabaseAndOperator function to get the operator

* fetchChannelStats after removing users from a channel

* currently, the UI does not provide a need to remove multiple members
from a channel, only one member. modify the function to only accept and
remove one user

* no need to pass the entire channel object. only need the channelId which
is already passed into the screen

* do not pass the entire user model, only the userid and if user canManage
  (is sysadmin or channel admin)

* move members constants to its own file and out of general.ts file

* pass channel displayName instead of the entire channel object

* not need to store the user as it is already in the store from the
fetchProfilesInChannel call

* implement device emitter to notify the parent to remove to the user from
the user list

* rename constant in reveal removing a member from a channel.  Might need for another team removal later.

* add snackbar after user is removed

* remove unnessary filter

* remove paging. Server response is not paginated
deconstruct intl

* create EMPTY const

* simplify getProfiles function

* move constants to top of file

* add function to remove the user from the server

* clean up dependencies

* remove @app/ prefix from imports

* add comment describing reason for switch / case

* rename varaible to be more intention revealing

* calculate isDefaultChannel and pass in as prop so don't need to
query for each user

* if user cannot manage, do not show the manage nav button

* move options const into function that uses it

* have the caller of handeRemoveMemberFromChannel fetch channel stats, not
the action

* nit formatting

* s/canManage/canManageMembers/

* use existing observeCanManageChannelMembers function
function only requires channel id

* move userInfo and manage user options to their own components

* calculate bottom sheet snap points when in manage mode

* implement correct permissions for managing users.  For now, only channel
admins can manage users (including deleting members)

* working on section creation

* use map instead of arrays

* - handle user profile sections differently when in members are provided (manage mode)
- emit event when user role is changed
  - modify the channelMembers in manage members modal after changing
    user role

* remove commented code

* deconstruct options

* sort dependencies and add loading dependency

* - when removing a user, remove them from channelMembers state also
- don't add empty sections to the user list results

* user profile coming from ManageChannelMembers is UserProfile joined with
their ChannelMembership.  Can now check for scheme_admin to see if the
user is a channel admin

* deconstruct locale from intl and remove intl const

* Add SearchUserOptions type to provide type checking when creating options for searchProfile
action and searchUsers client api

* correct comment

* deconstruct MANAGE_OPTIONS

* Remove unused event constant

* nits

* Push header title in to the UserProfileTitle component

* Put constants back so Diff of file is smaller

* Combine switch statements
Remove isOptionItem.  These are always action items

* Wrap onAction in a usecallback

* Add help comments

* Add i18n to section titles

* Create RenderItemType for renderItem callback

* update testID
update snapshots

* CanManageMembers is deterimined by observeCanManageChannelMembers

* Add members chanenl option

* Update after merge

* Sort in order of options shown

* nit refactor

* Modify client getProfilesInChannel allow passing more options than sort.
- sort the profiles by admin
- do not show deactivated users in the manage members modal

* Profiles are now sorted by admin.  We can maintain the alphabetical sort
also by iterating over the profiles instead of members which are not alphabetical

* Type the get users Api object

* Add type.
Active option is a boolean, not a string

* only initialize if needed. Moved inside the check for members

* Create type for Manage Member Options

* Remove one liners and call directly in the switch block

* Keys to the map do not need to be translated. Only translate the title
Place the Admins section always on top

* Add removeFromChannel as a dependency

* Remove manageMode option from the title component
- add imageSize prop
- add headerText prop

* Do not show deactivated users in search

* When users are showing and not in manage mode, allow the user to tap and
open the profile for the user (in non-manage mode)

* Add fetchOnly to getMemberInChannel function
Add fetchOnly to updateChannelMembersSchemeRoles function
Remove getMemberInChannel from handleUserChangeRole in manage_channel_members because it is already called via updateChannelMembersSchemeRoles

* Remove todo from comment

* Don't use state for defining action text, icon, and isDestructive. just
set them based on the prop value manageOption

* Added correct permission check for can user manage member roles

* Add can manage member roles prop

* Calculate snap points based on manageMemberRoles prop

* Calculate snap point based on if user can remove other users

* Do not show options if you cannot remove or manage members

* Fix post merge issues

* No need to batch because only manipulating a single model

* Remove comment

* Rename variable

* Split and sort props into multiple lines for readability

* Nit

* Make dependency more specific

* Remove comment.  Doing this requires writing a custom search function in
the app that would need to guarantee the same results as a server call

* Add logError to functions with catch

* Add ticket reference

* Remove await from functions that are updating the database.  Components
that observe models these modify will get the update based from the
observable change.

* Keep track of which section is first so that the tutorial highlight
selects the first user profile of the first section

* Add a second user that creates a new section for testing tutorial

* Remove unused prop

* Update snapshot to include second user

* Use getServerDatabaseAndOperator

* remove testID change. Added a ticket to fix later

* Revert tests to only one user to test if previous tests worked

* Add new test that has 2 users

* Add ticket context as comment

* Add channelId as dependency

* Use useCallback for updateChannelMemberSchemeRole

* Remove async

* mounted.current should only be used in an effect that executes on the
first render

when user has permission to manage members changed, there is no need to
get the profiles again

* Add await for function

* Always reset loading to false after getting profiles

* use !text instead of const value using Boolean()

* add dependency

* Add manage members ids back

* When fetching users for the channel, always store them in the database.
Otherwise tapping a user might not be in the database and tapping on
them will cause a crash

* Fetch the user profile from the server when opening the user profile

* Checking management permissions should be based on the current user, not
the user of the profile being opened

---------

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2023-02-03 10:42:12 +02:00
Pantelis Vratsalis
c5d95cec61 Translated using Weblate (English)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/en/
2023-01-31 12:31:51 +02:00
Kaya Zeren
48dc5a31a3 Translated using Weblate (Turkish)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
cabf0393a8 Translated using Weblate (Persian)
Currently translated at 86.1% (839 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
f024ffcd57 Translated using Weblate (Persian)
Currently translated at 81.5% (794 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
jprusch
6a0efc4eca Translated using Weblate (German)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/de/
2023-01-31 12:31:51 +02:00
Konstantin
1af6a27dc8 Translated using Weblate (Russian)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/
2023-01-31 12:31:51 +02:00
master7
df5fc06a36 Translated using Weblate (Polish)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/
2023-01-31 12:31:51 +02:00
kaakaa
fed3319f53 Translated using Weblate (Japanese)
Currently translated at 99.8% (973 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ja/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
6b2e62055d Translated using Weblate (Persian)
Currently translated at 81.4% (793 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
jprusch
c7d413cdea Translated using Weblate (German)
Currently translated at 99.8% (973 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/de/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
9d804b216e Translated using Weblate (English)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/en/
2023-01-31 12:31:51 +02:00
Kaya Zeren
d75887b149 Translated using Weblate (Turkish)
Currently translated at 100.0% (974 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
b5b29f90a9 Translated using Weblate (Persian)
Currently translated at 46.3% (451 of 974 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
Hosted Weblate
9a572907c6 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/
2023-01-31 12:31:51 +02:00
Tom De Moor
e82f43d73b Translated using Weblate (Dutch)
Currently translated at 98.3% (957 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-31 12:31:51 +02:00
yeongeun.seo
7701d6d341 Translated using Weblate (Korean)
Currently translated at 57.3% (558 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2023-01-31 12:31:51 +02:00
Konstantin
868f59e6a3 Translated using Weblate (Russian)
Currently translated at 100.0% (973 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/
2023-01-31 12:31:51 +02:00
IOMA
b9528fd73f Translated using Weblate (Russian)
Currently translated at 98.2% (956 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/
2023-01-31 12:31:51 +02:00
Konstantin
6af4326091 Translated using Weblate (Russian)
Currently translated at 98.2% (956 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/
2023-01-31 12:31:51 +02:00
MArtin Johnson
76f845827d Translated using Weblate (Swedish)
Currently translated at 100.0% (973 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
dbd913a890 Translated using Weblate (Persian)
Currently translated at 35.4% (345 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
Kaya Zeren
74e5934525 Translated using Weblate (Turkish)
Currently translated at 100.0% (973 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-31 12:31:51 +02:00
MArtin Johnson
5a64d57352 Translated using Weblate (Swedish)
Currently translated at 98.7% (961 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/
2023-01-31 12:31:51 +02:00
Tom De Moor
93c44ef797 Translated using Weblate (Dutch)
Currently translated at 97.8% (952 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-31 12:31:51 +02:00
Sajjad Jazini
8a7512ea70 Translated using Weblate (Persian)
Currently translated at 35.2% (343 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/fa/
2023-01-31 12:31:51 +02:00
Cédric Stocké
013b0a8601 Translated using Weblate (Spanish)
Currently translated at 96.6% (940 of 973 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/es/
2023-01-31 12:31:51 +02:00
master7
8881a20625 Translated using Weblate (Polish)
Currently translated at 100.0% (967 of 967 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/
2023-01-31 12:31:51 +02:00
Tom De Moor
c13f8705c2 Translated using Weblate (Dutch)
Currently translated at 98.3% (951 of 967 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-31 12:31:51 +02:00
master7
d758203a0a Translated using Weblate (Polish)
Currently translated at 98.8% (956 of 967 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/pl/
2023-01-31 12:31:51 +02:00
Kaya Zeren
f5cfd20f0b Translated using Weblate (Turkish)
Currently translated at 100.0% (965 of 965 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-31 12:31:51 +02:00
Daniel Espino García
a9dc4ec90f Use more verbose message on archive and don't make help link lowercase (#6952)
* Use more verbose message on archive and don't make help link lowercase

* Fix lint
2023-01-27 18:26:13 +01:00
Anurag Shivarathri
5160cf9212 [MM-49652] Setting to enable/disable CRT (#6999)
* Added settings

* Moved obj to variable

* Merge fix
2023-01-25 18:15:37 +05:30
exbu
0620835085 Translated using Weblate (Dutch)
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-24 11:02:34 +02:00
Tom De Moor
c8a57b6f81 Translated using Weblate (Dutch)
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-24 11:02:34 +02:00
Matthew Williams
4ab917c6aa Translated using Weblate (English (Australia))
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/en_AU/
2023-01-24 11:02:34 +02:00
Kaya Zeren
6b37051606 Translated using Weblate (Turkish)
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-24 11:02:34 +02:00
Kaya Zeren
73ad713823 Translated using Weblate (Turkish)
Currently translated at 96.3% (907 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/
2023-01-24 11:02:34 +02:00
Tom De Moor
5040a445b1 Translated using Weblate (Dutch)
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-24 11:02:34 +02:00
exbu
3ff26d687e Translated using Weblate (Dutch)
Currently translated at 100.0% (941 of 941 strings)

Translation: mattermost-languages-shipped/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nl/
2023-01-24 11:02:34 +02:00