|
@@ -125,6 +125,20 @@ export function getParticipantCount(stateful: Object | Function) {
|
125
|
125
|
return getParticipants(stateful).length;
|
126
|
126
|
}
|
127
|
127
|
|
|
128
|
+/**
|
|
129
|
+ * Returns a count of the known participants in the passed in redux state,
|
|
130
|
+ * including fake participants.
|
|
131
|
+ *
|
|
132
|
+ * @param {(Function|Object|Participant[])} stateful - The redux state
|
|
133
|
+ * features/base/participants, the (whole) redux state, or redux's
|
|
134
|
+ * {@code getState} function to be used to retrieve the state
|
|
135
|
+ * features/base/participants.
|
|
136
|
+ * @returns {number}
|
|
137
|
+ */
|
|
138
|
+export function getParticipantCountWithFake(stateful: Object | Function) {
|
|
139
|
+ return _getAllParticipants(stateful).length;
|
|
140
|
+}
|
|
141
|
+
|
128
|
142
|
/**
|
129
|
143
|
* Returns participant's display name.
|
130
|
144
|
*
|