osu/osu.Game
Dean Herbert 603527d72d Fix potential crash when highlighting chat messages
Test failed locally in `TestPublicChannelMention`. This test seems to
specify that the same message may arrive twice with the same ID, so
rather than overthinking this one I propose we just use `FirstOrDefault`.

```csharp
TearDown : System.AggregateException : One or more errors occurred.
(Sequence contains more than one matching element)
  ----> System.InvalidOperationException : Sequence contains more than
one matching element
--TearDown
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken)
   at osu.Framework.Extensions.TaskExtensions.WaitSafely(Task task)
   at osu.Framework.Testing.TestScene.checkForErrors()
--InvalidOperationException
   at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source,
Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1
source, Func`2 predicate)
   at
osu.Game.Overlays.Chat.DrawableChannel.<processMessageHighlighting>b__14_0()
in
/Users/dean/Projects/osu/osu.Game/Overlays/Chat/DrawableChannel.cs:line
102
   at osu.Framework.Threading.ScheduledDelegate.RunTaskInternal()
```
2022-03-16 18:38:06 +09:00
..
Audio
Beatmaps
Collections
Configuration Move GetSettingUnderlyingValue to a SettingSource extension method 2022-03-15 14:54:00 +09:00
Database Remove unused variable 2022-03-08 18:19:54 +09:00
Extensions Add the ability to add settings to skinnable elements 2022-03-13 17:03:25 +09:00
Graphics Confine the host cursor to area of 'everything' scaling container 2022-03-11 14:04:12 +01:00
Input
IO
IPC
Localisation Merge pull request #17073 from peppy/add-offset-adjust-tooltip-text 2022-03-05 23:28:24 +09:00
Migrations
Models
Online Move GetSettingUnderlyingValue to a SettingSource extension method 2022-03-15 14:54:00 +09:00
Overlays Fix potential crash when highlighting chat messages 2022-03-16 18:38:06 +09:00
Performance
Properties
Replays
Rulesets Merge pull request #17226 from peppy/skin-component-settings 2022-03-16 17:12:11 +09:00
Scoring Restructure PerformanceCalculator to not require ScoreInfo argument 2022-03-14 14:25:28 +09:00
Screens Merge pull request #17260 from peppy/editor-sidebar 2022-03-16 18:20:18 +09:00
Skinning Merge pull request #17226 from peppy/skin-component-settings 2022-03-16 17:12:11 +09:00
Stores
Storyboards Update DrawableStoryboardSprite to use helper method 2022-03-14 06:30:54 +03:00
Tests
Updater
Users Fix avatar not clickable after watching replay 2022-03-09 14:39:02 +09:00
Utils Move GetSettingUnderlyingValue to a SettingSource extension method 2022-03-15 14:54:00 +09:00
.editorconfig
osu!.res
osu.Game.csproj Update framework 2022-03-14 22:23:50 +09:00
OsuGame.cs Refactor SkinEditor to support switching target screens without full reload 2022-03-11 23:08:40 +09:00
OsuGameBase_Importing.cs
OsuGameBase.cs Change to lambda method 2022-03-14 13:54:54 +09:00
PerformFromMenuRunner.cs