DM shows player name; add party rename
- ChatGetChannelsHandler: for Direct channels, look up the other member's display name from identity DB and return it as the channel name (per-caller, no DB schema change) - ChatDmOpenHandler: same — returns recipient display name in the DTO for both new and existing DM channels - New ChatPartyRenameHandler (chat.party.rename): updates the party channel name, returns updated DTO - Chat.gd: rename_party() calls the new handler and upserts locally - chat_overlay.gd: "Rename" button in party action bar opens a dialog to set a new party name Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -227,6 +227,21 @@ func respond_party_invite(channel_id: String, accept: bool) -> void:
|
||||
)
|
||||
|
||||
|
||||
## Rename the caller's current party channel.
|
||||
func rename_party(name: String) -> void:
|
||||
Network.request(
|
||||
"chat.party.rename",
|
||||
{ "name": name },
|
||||
func(_t: String, p: Variant) -> void:
|
||||
var chan: Dictionary = (p as Dictionary).get("channel", {})
|
||||
if not chan.is_empty():
|
||||
_upsert_channel(chan)
|
||||
party_updated.emit()
|
||||
channels_updated.emit(),
|
||||
func(_c: String, _m: String) -> void: pass
|
||||
)
|
||||
|
||||
|
||||
## Leave the current party channel.
|
||||
func leave_party() -> void:
|
||||
Network.request(
|
||||
|
||||
Reference in New Issue
Block a user