mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:33:21 +08:00
Ensure all LocalMessage
s get a timestamp
This commit is contained in:
parent
c84f011bb7
commit
9e34fe360a
@ -104,6 +104,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
var standardMessage = new Message(messageIdSequence++)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now,
|
||||
Sender = admin,
|
||||
Content = "I am a wang!"
|
||||
};
|
||||
@ -113,6 +114,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
|
||||
var standardMessage2 = new Message(messageIdSequence++)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now,
|
||||
Sender = admin,
|
||||
Content = "I am a wang!"
|
||||
};
|
||||
|
@ -1,9 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Online.Chat
|
||||
@ -13,7 +10,6 @@ namespace osu.Game.Online.Chat
|
||||
public InfoMessage(string message)
|
||||
: base(null)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now;
|
||||
Content = message;
|
||||
|
||||
Sender = APIUser.SYSTEM_USER;
|
||||
|
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace osu.Game.Online.Chat
|
||||
{
|
||||
public class LocalEchoMessage : LocalMessage
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Online.Chat
|
||||
{
|
||||
@ -13,6 +13,7 @@ namespace osu.Game.Online.Chat
|
||||
protected LocalMessage(long? id)
|
||||
: base(id)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user