Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-21 10:56:15 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-21 10:56:15 +0300
commit2bd2bf2642ab35726fdfa0217c2870b7da32d007 (patch)
treed2071244f08c69c412bf6f2c9f19086cda41ef76 /src/store
parentd8136e3b68a1e2a34e666c4a7d82b959fd61791d (diff)
Fix deprecation docs and getter name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/participantsStore.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js
index 699c6255d..4968ddc9d 100644
--- a/src/store/participantsStore.js
+++ b/src/store/participantsStore.js
@@ -43,7 +43,9 @@ import { EventBus } from '../services/EventBus'
import { showError } from '@nextcloud/dialogs'
const state = {
- // Deprecated, use attendees instead
+ /**
+ * @deprecated use attendees instead
+ */
participants: {
},
attendees: {
@@ -78,7 +80,13 @@ const getters = {
return []
},
- // Deprecated, use "participant" getter instead
+ /**
+ * @param {*} state - the state object.
+ * param {string} token - the conversation token.
+ * param {number} index - the index of the participant in the participants array
+ * @return {object} - The participant object.
+ * @deprecated use "getAttendee" getter instead
+ */
getParticipant: (state) => (token, index) => {
if (state.participants[token] && state.participants[token][index]) {
return state.participants[token][index]
@@ -95,7 +103,7 @@ const getters = {
* param {number} attendeeId - Unique identifier for a participant in a conversation.
* @return {object} - The participant object.
*/
- participant: (state) => (token, attendeeId) => {
+ getAttendee: (state) => (token, attendeeId) => {
if (state.attendees[token] && state.attendees[token][attendeeId]) {
return state.attendees[token][attendeeId]
}