Improved typing indicator

This commit is contained in:
2025-06-08 12:14:23 +08:00
parent 9d534660af
commit b1faabb07b
2 changed files with 16 additions and 3 deletions

View File

@ -360,8 +360,10 @@ public class AccountService(
await nty.UnsubscribePushNotifications(session.Challenge.DeviceId);
// The current session should be included in the sessions' list
db.AuthSessions.RemoveRange(sessions);
await db.SaveChangesAsync();
await db.AuthSessions
.Include(s => s.Challenge)
.Where(s => s.Challenge.DeviceId == session.Challenge.DeviceId)
.ExecuteDeleteAsync();
foreach (var item in sessions)
await cache.RemoveAsync($"{DysonTokenAuthHandler.AuthCachePrefix}{item.Id}");