mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
remove hutao user changed message
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
// Copyright (c) DGP Studio. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
namespace Snap.Hutao.Message;
|
||||
|
||||
internal sealed class HutaoUserChangedMessage
|
||||
{
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user