mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Add support for all channel types
This commit is contained in:
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user