add the ability to register from inside the user-ui
This commit is contained in:
parent
31e01292f9
commit
ed1a1f10f9
12 changed files with 655 additions and 5 deletions
|
|
@ -98,6 +98,10 @@ pub enum ClientMessage {
|
|||
/// Arguments for the subcommand.
|
||||
args: Vec<String>,
|
||||
},
|
||||
|
||||
/// Request to refresh identity after registration (guest → user conversion).
|
||||
/// Server will fetch updated user data and broadcast to all members.
|
||||
RefreshIdentity,
|
||||
}
|
||||
|
||||
/// Server-to-client WebSocket messages.
|
||||
|
|
@ -260,4 +264,14 @@ pub enum ServerMessage {
|
|||
/// Human-readable result message.
|
||||
message: String,
|
||||
},
|
||||
|
||||
/// A member's identity was updated (e.g., guest registered as user).
|
||||
MemberIdentityUpdated {
|
||||
/// User ID of the member.
|
||||
user_id: Uuid,
|
||||
/// New display name.
|
||||
display_name: String,
|
||||
/// Whether the member is still a guest.
|
||||
is_guest: bool,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue