feat(chat): modele multi-salles cote client + fix serialisation ChatRoomInfo

Client PostIt:
- JoinedRooms, SelectedRoom, messages et utilisateurs par salle
  (FocusedMessages/FocusedUsers), OnRoomJoined alimente depuis la
  valeur de retour du Join
- ChatPage : ComboBox de choix de la salle en focus, listes bindees
  sur les vues de focus

Serveur:
- AddSignalR().AddJsonProtocol(IncludeFields=true) : ChatRoomInfo
  n'expose que des champs publics, STJ ne les serialisait pas et le
  client recevait des objets vides (JoinedRooms jamais alimente)
This commit is contained in:
Paul Schneider 2026-10-04 00:35:26 +01:00
commit 9369ff4fcd
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
4 changed files with 126 additions and 34 deletions

View file

@ -152,7 +152,11 @@ namespace Yavsc.Server.Hubs
// in case in an additional connection,
// one only send info on room without
// warning any other user.
_cxManager.TryGetChanInfo(roomName, out channelInfo);
if (!_cxManager.TryGetChanInfo(roomName, out channelInfo))
{
_logger.LogError($"Failed to retrieve channel info for room: {roomName}");
return null;
}
}
_logger.LogInformation($"returning channel info");