mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Also check null for bindable channel value
This commit is contained in:
parent
97bd76efc6
commit
254c881ded
@ -68,7 +68,7 @@ namespace osu.Game.Overlays.Chat
|
||||
private UserProfileOverlay? profileOverlay { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private Bindable<Channel>? currentChannel { get; set; }
|
||||
private Bindable<Channel?>? currentChannel { get; set; }
|
||||
|
||||
private readonly APIUser user;
|
||||
private readonly OsuSpriteText drawableText;
|
||||
@ -161,7 +161,7 @@ namespace osu.Game.Overlays.Chat
|
||||
if (!user.Equals(api.LocalUser.Value))
|
||||
items.Add(new OsuMenuItem(UsersStrings.CardSendMessage, MenuItemType.Standard, openUserChannel));
|
||||
|
||||
if (currentChannel != null)
|
||||
if (currentChannel?.Value != null)
|
||||
{
|
||||
items.Add(new OsuMenuItem(ChatStrings.MentionUser, MenuItemType.Standard, () =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user