mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Merge pull request #774 from peppy/fix-chat-after-disconnect
Fix channels being unnecessarily recycled on disconnect
This commit is contained in:
commit
8bcbc2cc26
@ -206,18 +206,12 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
private long? lastMessageId;
|
private long? lastMessageId;
|
||||||
|
|
||||||
private List<Channel> careChannels;
|
private List<Channel> careChannels = new List<Channel>();
|
||||||
|
|
||||||
private readonly List<DrawableChannel> loadedChannels = new List<DrawableChannel>();
|
private readonly List<DrawableChannel> loadedChannels = new List<DrawableChannel>();
|
||||||
|
|
||||||
private void initializeChannels()
|
private void initializeChannels()
|
||||||
{
|
{
|
||||||
currentChannelContainer.Clear();
|
|
||||||
|
|
||||||
loadedChannels.Clear();
|
|
||||||
|
|
||||||
careChannels = new List<Channel>();
|
|
||||||
|
|
||||||
SpriteText loading;
|
SpriteText loading;
|
||||||
Add(loading = new OsuSpriteText
|
Add(loading = new OsuSpriteText
|
||||||
{
|
{
|
||||||
@ -232,8 +226,6 @@ namespace osu.Game.Overlays
|
|||||||
ListChannelsRequest req = new ListChannelsRequest();
|
ListChannelsRequest req = new ListChannelsRequest();
|
||||||
req.Success += delegate (List<Channel> channels)
|
req.Success += delegate (List<Channel> channels)
|
||||||
{
|
{
|
||||||
Debug.Assert(careChannels.Count == 0);
|
|
||||||
|
|
||||||
Scheduler.Add(delegate
|
Scheduler.Add(delegate
|
||||||
{
|
{
|
||||||
loading.FadeOut(100);
|
loading.FadeOut(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user