mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
Add test case for mismatch of channels
This commit is contained in:
parent
50e357a799
commit
d9c57baa89
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
@ -455,6 +456,8 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
if (message == null)
|
||||
message = channel.Messages.Last();
|
||||
else
|
||||
Debug.Assert(channel.Id == message.Id, "Provided channel and message owner channel aren't equal.");
|
||||
|
||||
var req = new MarkChannelAsReadRequest(channel, message);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user