1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Add clear to ensure no pile-up of messages.

This commit is contained in:
Dean Herbert 2016-09-27 18:41:58 +09:00
parent 28045b7136
commit b4e65e7011

View File

@ -94,6 +94,7 @@ namespace osu.Desktop.Tests
GetMessagesRequest gm = new GetMessagesRequest(new List<Channel> { channel }, lastMessageId);
gm.Success += delegate (List<Message> messages)
{
channel.Messages.Clear();
foreach (Message m in messages)
{
//m.LineWidth = this.Size.X; //this is kinda ugly.