예제 #1
0
파일: ChatOverlay.cs 프로젝트: vbe0201/osu
        private void removeChannel(Channel channel)
        {
            if (channel == null)
            {
                return;
            }

            if (channel == CurrentChannel)
            {
                CurrentChannel = null;
            }

            careChannels.Remove(channel);
            loadedChannels.Remove(loadedChannels.Find(c => c.Channel == channel));
            channelTabs.RemoveItem(channel);

            channel.Joined.Value = false;
        }
예제 #2
0
        private void removeChannel(Channel channel)
        {
            if (channel == null)
            {
                return;
            }

            if (channel == CurrentChannel)
            {
                CurrentChannel = null;
            }

            careChannels.Remove(channel);
            loadedChannels.Remove(loadedChannels.Find(c => c.Channel == channel));
            channelTabs.RemoveItem(channel);

            api.Queue(new LeaveChannelRequest(channel, api.LocalUser));
            channel.Joined.Value = false;
        }