Add support for all channel types

This commit is contained in:
Dean Herbert
2018-11-20 15:03:55 +09:00
parent 1b86318ab4
commit 23a446bab2
2 changed files with 6 additions and 4 deletions

View File

@ -56,12 +56,10 @@ namespace osu.Game.Overlays.Chat.Tabs
{
switch (value.Type)
{
case ChannelType.Public:
default:
return new ChannelTabItem(value) { OnRequestClose = tabCloseRequested };
case ChannelType.PM:
return new PrivateChannelTabItem(value) { OnRequestClose = tabCloseRequested };
default:
throw new InvalidOperationException("Only TargetType User and Channel are supported.");
}
}