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