Clarify more docs

This commit is contained in:
Luke Barnard 2017-12-13 15:50:20 +00:00
parent fe6b7c0ea2
commit 950f591b3f
2 changed files with 5 additions and 3 deletions

View file

@ -86,8 +86,8 @@ export default {
* @param {MatrixClient} matrixClient a MatrixClient to register a listener with. * @param {MatrixClient} matrixClient a MatrixClient to register a listener with.
* @param {string} eventName the event to listen to on MatrixClient. * @param {string} eventName the event to listen to on MatrixClient.
* @param {function} actionCreator a function that should return an action to dispatch * @param {function} actionCreator a function that should return an action to dispatch
* when given the arguments emitted in the MatrixClient * when given the MatrixClient as an argument as well as
* event. * arguments emitted in the MatrixClient event.
*/ */
_addMatrixClientListener(matrixClient, eventName, actionCreator) { _addMatrixClientListener(matrixClient, eventName, actionCreator) {
const listener = (...args) => { const listener = (...args) => {

View file

@ -36,7 +36,9 @@ const TagPanel = React.createClass({
getInitialState() { getInitialState() {
return { return {
// A list of group profiles for group tags // A list of group profiles for tags that are group IDs. The intention in future
// is to allow arbitrary tags to be selected in the TagPanel, not just groups.
// For now, it suffices to maintain a list of ordered group profiles.
orderedGroupTagProfiles: [ orderedGroupTagProfiles: [
// { // {
// groupId: '+awesome:foo.bar',{ // groupId: '+awesome:foo.bar',{