diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 8533e3f61a..27f88fb33b 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -37,6 +37,11 @@ import GroupStore from '../../../stores/GroupStore'; const HIDE_CONFERENCE_CHANS = true; const STANDARD_TAGS_REGEX = /^(m\.(favourite|lowpriority)|im\.vector\.fake\.(invite|recent|direct|archived))$/; +function labelForTagName(tagName) { + if (tagName.startsWith('u.')) return tagName.slice(2); + return tagName; +} + function phraseForSection(section) { switch (section) { case 'm.favourite': @@ -690,7 +695,7 @@ module.exports = React.createClass({ if (!tagName.match(STANDARD_TAGS_REGEX)) { return { + return !t.startsWith('m.') || lists[t] !== undefined; + }); + if (tagNames.length) { for (let i = 0; i < tagNames.length; i++) { const tagName = tagNames[i];