Implemented cache reset for Gmail history id expiration. (#581)

This commit is contained in:
Burak Kaan Köse
2025-02-22 23:09:53 +01:00
committed by GitHub
parent bd5b51c62f
commit 7e05d05f94
16 changed files with 204 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Wino.Messaging.Server;
using Wino.Messaging.UI;
namespace Wino.Messaging;
@@ -23,4 +24,6 @@ namespace Wino.Messaging;
[JsonSerializable(typeof(AccountSynchronizationProgressUpdatedMessage))]
[JsonSerializable(typeof(AccountFolderConfigurationUpdated))]
[JsonSerializable(typeof(CopyAuthURLRequested))]
[JsonSerializable(typeof(NewMailSynchronizationRequested))]
[JsonSerializable(typeof(AccountCacheResetMessage))]
public partial class CommunicationMessagesContext : JsonSerializerContext;

View File

@@ -0,0 +1,7 @@
using System;
using Wino.Core.Domain.Enums;
namespace Wino.Messaging.UI;
// Raised when the account's mail cache is reset.
public record AccountCacheResetMessage(Guid AccountId, AccountCacheResetReason Reason) : UIMessageBase<AccountCacheResetMessage>;