Implement temp fix to get the actual message

This commit is contained in:
Andrei Zavatski
2019-10-08 13:31:49 +03:00
parent 70e1d731ad
commit 4b1a40daba
2 changed files with 7 additions and 1 deletions

View File

@ -76,5 +76,11 @@ namespace osu.Game.Online.API.Requests.Responses
public bool IsTopLevel { get; set; } public bool IsTopLevel { get; set; }
public bool IsDeleted { get; set; } public bool IsDeleted { get; set; }
public string GetMessage()
{
//temporary fix until HTML parsing will be implemented
return MessageHTML.Remove(MessageHTML.LastIndexOf("</p>")).Substring(65);
}
} }
} }

View File

@ -107,7 +107,7 @@ namespace osu.Game.Overlays
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Text = comment.MessageHTML, Text = comment.GetMessage(),
}, },
new Container new Container
{ {