diff options
author | marco <marcoambrosini@pm.me> | 2021-10-15 12:50:43 +0300 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2021-10-18 11:16:52 +0300 |
commit | 008251401165658af6a2e174f726b989dc2f83b8 (patch) | |
tree | db274e4b90f8c7d812bbe13e984e6815c57a36a0 /src/store | |
parent | 208fa0cf76edd24ef363364949f79b6ad46e3202 (diff) |
Remove addPermissions and removePermissions methods for now
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/participantsStore.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js index c3ef62852..80dbb7117 100644 --- a/src/store/participantsStore.js +++ b/src/store/participantsStore.js @@ -30,8 +30,6 @@ import { removeCurrentUserFromConversation, grantAllPermissionsToParticipant, removeAllPermissionsFromParticipant, - addPermissions, - removePermissions, setPermissions, } from '../services/participantsService' import { generateUrl } from '@nextcloud/router' @@ -598,48 +596,6 @@ const actions = { * @param {string} root0.attendeeId - the participant-s attendeeId. * @param {number} root0.permissions - bitwise combination of the permissions. */ - async addPermissions(context, { token, attendeeId, permissions }) { - await addPermissions(token, attendeeId, permissions) - // Get participant's index - const index = context.getters.getParticipantIndex(token, { attendeeId }) - if (index === -1) { - return - } - - context.commit('addPermissions', { token, index, permissions }) - }, - - /** - * Remove a specific permission or permission combination to a given - * participant. - * - * @param {object} context - the context object. - * @param {object} root0 - the arguments oobject. - * @param {string} root0.token - the conversation token. - * @param {string} root0.attendeeId - the participant-s attendeeId. - * @param {number} root0.permissions - the binary sum of the permission combination. - */ - async removePermissions(context, { token, attendeeId, permissions }) { - await removePermissions(token, attendeeId, permissions) - // Get participant's index - const index = context.getters.getParticipantIndex(token, { attendeeId }) - if (index === -1) { - return - } - - context.commit('removePermissions', { token, index, permissions }) - }, - - /** - * Add a specific permission or permission combination to a given - * participant. - * - * @param {object} context - the context object. - * @param {object} root0 - the arguments oobject. - * @param {string} root0.token - the conversation token. - * @param {string} root0.attendeeId - the participant-s attendeeId. - * @param {number} root0.permissions - bitwise combination of the permissions. - */ async setPermissions(context, { token, attendeeId, permissions }) { await setPermissions(token, attendeeId, permissions) // Get participant's index |