remove hutao user changed message

This commit is contained in:
Lightczx
2023-10-30 09:14:21 +08:00
committed by DismissedLight
parent ba4a7c1447
commit 38cffe4dc3
3 changed files with 1 additions and 17 deletions

View File

@@ -1,8 +0,0 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
namespace Snap.Hutao.Message;
internal sealed class HutaoUserChangedMessage
{
}

View File

@@ -76,7 +76,6 @@ internal sealed class HutaoUserOptions : ObservableObject, IOptions<HutaoUserOpt
{
await taskContext.SwitchToMainThreadAsync();
UpdateUserInfo(userInfoResponse.Data);
Ioc.Default.GetRequiredService<IMessenger>().Send(new Message.HutaoUserChangedMessage());
return true;
}

View File

@@ -1,11 +1,9 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using CommunityToolkit.Mvvm.Messaging;
using Microsoft.UI.Xaml.Controls;
using Snap.Hutao.Control.Extension;
using Snap.Hutao.Factory.Abstraction;
using Snap.Hutao.Message;
using Snap.Hutao.Model.Entity;
using Snap.Hutao.Service.GachaLog;
using Snap.Hutao.Service.Hutao;
@@ -22,7 +20,7 @@ namespace Snap.Hutao.ViewModel.GachaLog;
/// </summary>
[ConstructorGenerated]
[Injection(InjectAs.Scoped)]
internal sealed partial class HutaoCloudViewModel : Abstraction.ViewModel, IRecipient<HutaoUserChangedMessage>
internal sealed partial class HutaoCloudViewModel : Abstraction.ViewModel
{
private readonly INavigationService navigationService;
private readonly IContentDialogFactory contentDialogFactory;
@@ -49,11 +47,6 @@ internal sealed partial class HutaoCloudViewModel : Abstraction.ViewModel, IReci
/// </summary>
internal ICommand RetrieveCommand { get; set; }
public void Receive(HutaoUserChangedMessage message)
{
RefreshUidCollectionAsync().SafeForget();
}
/// <summary>
/// 异步获取祈愿记录
/// </summary>