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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user