Remove old community invite placeholder handling

We ended up shoving it into the invite list, so don't render it here.
pull/21833/head
Travis Ralston 2020-07-06 20:32:09 -06:00
parent d14dd777b7
commit b28a267669
1 changed files with 0 additions and 7 deletions

View File

@ -64,8 +64,6 @@ interface IState {
} }
const TAG_ORDER: TagID[] = [ const TAG_ORDER: TagID[] = [
// -- Community Invites Placeholder --
DefaultTagID.Invite, DefaultTagID.Invite,
DefaultTagID.Favourite, DefaultTagID.Favourite,
DefaultTagID.DM, DefaultTagID.DM,
@ -77,7 +75,6 @@ const TAG_ORDER: TagID[] = [
DefaultTagID.ServerNotice, DefaultTagID.ServerNotice,
DefaultTagID.Archived, DefaultTagID.Archived,
]; ];
const COMMUNITY_TAGS_BEFORE_TAG = DefaultTagID.Invite;
const CUSTOM_TAGS_BEFORE_TAG = DefaultTagID.LowPriority; const CUSTOM_TAGS_BEFORE_TAG = DefaultTagID.LowPriority;
const ALWAYS_VISIBLE_TAGS: TagID[] = [ const ALWAYS_VISIBLE_TAGS: TagID[] = [
DefaultTagID.DM, DefaultTagID.DM,
@ -227,10 +224,6 @@ export default class RoomList2 extends React.Component<IProps, IState> {
const components: React.ReactElement[] = []; const components: React.ReactElement[] = [];
for (const orderedTagId of TAG_ORDER) { for (const orderedTagId of TAG_ORDER) {
if (COMMUNITY_TAGS_BEFORE_TAG === orderedTagId) {
// Populate community invites if we have the chance
// TODO: Community invites: https://github.com/vector-im/riot-web/issues/14179
}
if (CUSTOM_TAGS_BEFORE_TAG === orderedTagId) { if (CUSTOM_TAGS_BEFORE_TAG === orderedTagId) {
// Populate custom tags if needed // Populate custom tags if needed
// TODO: Custom tags: https://github.com/vector-im/riot-web/issues/14091 // TODO: Custom tags: https://github.com/vector-im/riot-web/issues/14091