mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
Fix code sanity
This commit is contained in:
parent
697b551f3e
commit
2056258def
@ -1,4 +1,6 @@
|
|||||||
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
|
@ -197,7 +197,7 @@ namespace osu.Game.Online.Chat
|
|||||||
var withoutReplyGroups = outgoingMessagesGroups.Where(g => joinedUserChannels.All(m => m.Id != g.Key));
|
var withoutReplyGroups = outgoingMessagesGroups.Where(g => joinedUserChannels.All(m => m.Id != g.Key));
|
||||||
|
|
||||||
foreach (var withoutReplyGroup in withoutReplyGroups)
|
foreach (var withoutReplyGroup in withoutReplyGroups)
|
||||||
{
|
{
|
||||||
var userReq = new GetUserRequest(withoutReplyGroup.First().TargetId);
|
var userReq = new GetUserRequest(withoutReplyGroup.First().TargetId);
|
||||||
|
|
||||||
userReq.Failure += exception => Logger.Error(exception, "Failed to get user informations.");
|
userReq.Failure += exception => Logger.Error(exception, "Failed to get user informations.");
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -79,8 +82,6 @@ namespace osu.Game.Overlays.Chat
|
|||||||
ChannelTabControl.AddItem(channel);
|
ChannelTabControl.AddItem(channel);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveItem(Channel channel)
|
public void RemoveItem(Channel channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user