mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Better handling of logged in state
This commit is contained in:
@ -353,7 +353,15 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
var postText = textbox.Text;
|
||||
|
||||
if (string.IsNullOrEmpty(postText) || api.LocalUser.Value == null) return;
|
||||
if (string.IsNullOrEmpty(postText))
|
||||
return;
|
||||
|
||||
if (!api.IsLoggedIn)
|
||||
{
|
||||
currentChannel?.AddNewMessages(new ErrorMessage("Please login to participate in chat!"));
|
||||
textbox.Text = string.Empty;
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentChannel == null) return;
|
||||
|
||||
|
Reference in New Issue
Block a user