osu/osu.Game/Overlays
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
..
AccountCreation Remove unused params from BDL methods 2022-01-15 01:06:39 +01:00
BeatmapListing Fix beatmap overlay not re-fetching results after login 2022-02-22 14:55:52 +09:00
BeatmapSet Fix scores not being recalculated in beatmap listing 2022-03-08 19:07:39 +09:00
Changelog Remove unused params from BDL methods 2022-01-15 01:06:39 +01:00
Chat Fix potential crash when highlighting chat messages 2022-03-16 18:38:06 +09:00
Comments Remove unused params from BDL methods 2022-01-15 01:06:39 +01:00
Dashboard Refactorings 2022-02-08 21:29:43 +09:00
Dialog
Login Update further ChangeFocus usages 2022-02-15 02:42:39 +03:00
MedalSplash
Mods Better annotate initial rolling counter value set 2022-03-07 23:11:20 +01:00
Music Allow pausing game-wide audio via hotkey as long as LocalUserPlaying is not set 2022-02-24 16:00:14 +09:00
News Fix news sidebar assuming returned posts are always from given year 2022-01-19 23:13:30 +01:00
Notifications Log posted notifications 2022-01-25 23:38:48 +09:00
OSD Fix toast popups spamming samples when adjusting osu!mania scroll speed during gameplay 2021-12-15 12:45:23 +09:00
Profile Dispose cancellation token source on disposal 2022-03-04 10:01:07 +03:00
Rankings Add references to web implementation wrt property used 2022-01-09 14:46:15 +01:00
Settings Fix potential crash on rare incorrect firing of skin dropdown update methods 2022-03-09 01:08:13 +09:00
Toolbar Rename RealmContextFactory to RealmAccess 2022-01-24 20:38:07 +09:00
Volume Update one more custom transform with BorderColour type change 2022-02-14 18:52:19 +01:00
Wiki Clean up unused resolved properties 2021-12-03 18:49:49 +09:00
AccountCreationOverlay.cs Remove unused params from BDL methods 2022-01-15 01:06:39 +01:00
BeatmapListingOverlay.cs Ensure old results are cleared from beatmap overlay on logout 2022-02-22 14:56:04 +09:00
BeatmapSetOverlay.cs Clean up unused resolved properties 2021-12-03 18:49:49 +09:00
BreadcrumbControlOverlayHeader.cs
ChangelogOverlay.cs Remove unused params from BDL methods 2022-01-15 01:06:39 +01:00
ChatOverlay.cs Improve channel switching flow in HighlightMessage 2022-03-10 23:07:15 +03:00
DashboardOverlay.cs
DialogOverlay.cs
FullscreenOverlay.cs
HoldToConfirmOverlay.cs
INamedOverlayComponent.cs
LoginOverlay.cs Update further ChangeFocus usages 2022-02-15 02:42:39 +03:00
MedalOverlay.cs
MusicController.cs Completely remove subscription from MusicController 2022-01-25 16:53:02 +09:00
NewsOverlay.cs
NotificationOverlay.cs Log posted notifications 2022-01-25 23:38:48 +09:00
NowPlayingOverlay.cs Stop detaching and exposing beatmaps from MusicController 2022-01-25 16:51:21 +09:00
OnlineOverlay.cs
OnScreenDisplay.cs Fix toast popups spamming samples when adjusting osu!mania scroll speed during gameplay 2021-12-15 12:45:23 +09:00
OverlayActivation.cs
OverlayColourProvider.cs Remove static OverlayColourProviders 2022-02-20 21:09:08 +01:00
OverlayHeader.cs
OverlayHeaderBackground.cs
OverlayPanelDisplayStyleControl.cs
OverlayRulesetSelector.cs
OverlayRulesetTabItem.cs
OverlayScrollContainer.cs
OverlaySidebar.cs
OverlaySortTabControl.cs
OverlayStreamControl.cs
OverlayStreamItem.cs
OverlayTabControl.cs
OverlayTitle.cs
OverlayView.cs
RankingsOverlay.cs
RestoreDefaultValueButton.cs
SettingsOverlay.cs
SettingsPanel.cs Abstractify expansion logic from ExpandingButtonContainer 2022-01-23 05:41:16 +03:00
SettingsSubPanel.cs Split out expanding container logic from settings sidebar 2022-01-06 21:02:29 +09:00
SettingsToolboxGroup.cs Fix skin components toolbox not autosizing properly 2022-03-10 16:30:20 +03:00
SortDirection.cs
TabbableOnlineOverlay.cs
TabControlOverlayHeader.cs
UserProfileOverlay.cs
VersionManager.cs Move VersionManager from osu.Desktop to osu.Game 2022-01-15 19:42:38 +01:00
VolumeOverlay.cs
WaveOverlayContainer.cs
WikiOverlay.cs Remove brackets surrounding one-line statements 2022-03-04 10:14:19 +03:00