feat: polish personal space editor

This commit is contained in:
ANG-Server
2026-07-22 13:41:28 +08:00
parent e3accf6b71
commit d60444d2eb
10 changed files with 858 additions and 42 deletions

View File

@@ -1153,7 +1153,8 @@ func _handle_friend_list(data: Dictionary) -> void:
_friends.append({
"user_id": str(friend.get("userId", friend.get("user_id", ""))).strip_edges(),
"username": str(friend.get("username", "")),
"online": bool(friend.get("online", false))
"online": bool(friend.get("online", false)),
"room_visitable": bool(friend.get("room_visitable", false))
})
_emit_event(EventNames.CHAT_FRIENDS_UPDATED, {
@@ -1172,7 +1173,8 @@ func _handle_friend_added(data: Dictionary) -> void:
_upsert_friend({
"user_id": friend_user_id,
"username": str(friend.get("username", "")),
"online": bool(friend.get("online", false))
"online": bool(friend.get("online", false)),
"room_visitable": bool(friend.get("room_visitable", false))
})
request_friend_list()