1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 07:27:25 +08:00

Add test case for mismatch of channels

This commit is contained in:
Craftplacer 2020-01-11 17:48:03 +01:00
parent 50e357a799
commit d9c57baa89

View File

@ -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);