Active users copied to last valid state upon invalidation

This commit is contained in:
2026-03-09 21:13:21 +01:00
parent e94c54b2ad
commit b10292b880
2 changed files with 15 additions and 3 deletions

View File

@@ -18,9 +18,16 @@ public class RtErrorHandleStrategy : IErrorMessageHandleStrategy
public async Task Handle(ErrorMessage message, CancellationToken cancellationToken)
{
var activeUsers = _whiteboardManager.GetWhiteboard(message.WhiteboardId)!.ActiveUsers;
await _whiteboardManager.LoadWhiteboard(message.WhiteboardId);
var whiteboard = _whiteboardManager.GetWhiteboard(message.WhiteboardId)!;
foreach (var user in activeUsers)
{
whiteboard.AddActiveUser(user);
}
await _hubContext.Clients
.Group(whiteboard.WhiteboardId.ToString())