mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00: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