Fix chat bubble visibility, friends refresh, and DM close

- Chat bubble now hidden on all scenes; MainScreen shows/hides it via
  Chat.set_bubble_visible() in _ready/_exit_tree
- send_friend_request now uses Network.request so _fetch_social() fires
  on success, making the friends list update immediately after adding
- Added DM close button (✕) to each conversation row in the DMs tab;
  _close_dm removes the channel from local state via Chat.close_dm()

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:
dingo
2026-03-06 22:14:43 -05:00
co-authored by Claude Happy
parent a482cc5319
commit dceabf4f06
8 changed files with 55 additions and 4 deletions
@@ -19,6 +19,7 @@ extends Control
func _ready() -> void:
welcome_label.text = "Welcome, %s!" % Auth.display_name
Chat.set_bubble_visible(true)
Network.connected.connect(_update_status)
Network.disconnected.connect(_update_status)
@@ -46,6 +47,7 @@ func _ready() -> void:
func _exit_tree() -> void:
Chat.set_bubble_visible(false)
if Network.connected.is_connected(_update_status):
Network.connected.disconnect(_update_status)
if Network.disconnected.is_connected(_update_status):