cli: address PR review comments

- rename APICreateMyAddress field srv_ to server_
- extract repeated `loop` and putStrLn from createActiveUser via
  prompt where-clause
- fuse u_ inspection: validate active user display name in the same
  case that creates the user when missing
This commit is contained in:
shum
2026-05-05 07:19:21 +00:00
parent 221ca9a2de
commit d6baf125cd
3 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ data ChatCommand
| ClearContact ContactName
| APIListContacts {userId :: UserId}
| ListContacts
| APICreateMyAddress {userId :: UserId, srv_ :: Maybe SMPServerWithAuth}
| APICreateMyAddress {userId :: UserId, server_ :: Maybe SMPServerWithAuth}
| CreateMyAddress
| APIDeleteMyAddress {userId :: UserId}
| DeleteMyAddress