mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 19:12:57 +08:00
Prevent channel duplicates
This commit is contained in:
parent
5978e2c0e2
commit
795051e256
@ -79,7 +79,7 @@ namespace osu.Game.Online.Chat
|
||||
/// </remarks>
|
||||
public void HandleMessages(long channelId, IEnumerable<Message> messages)
|
||||
{
|
||||
var channel = channelManager.JoinedChannels.FirstOrDefault(c => c.Id == channelId);
|
||||
var channel = channelManager.JoinedChannels.SingleOrDefault(c => c.Id == channelId);
|
||||
|
||||
if (channel == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user