Remove sessions from <GameBrowser /> after logout.
This commit is contained in:
@@ -115,7 +115,13 @@
|
||||
|
||||
Task LoginChangedEvent_FetchSessions(LoginEventArgs args)
|
||||
{
|
||||
if (args.User != null)
|
||||
if (args.User == null)
|
||||
{
|
||||
joinedSessions = Array.Empty<SessionMetadata>();
|
||||
otherSessions = Array.Empty<SessionMetadata>();
|
||||
StateHasChanged();
|
||||
}
|
||||
else
|
||||
{
|
||||
return FetchSessions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user