From f59c81779940eeac222c0101a7eb0308f208e322 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Mon, 13 Oct 2025 17:22:48 -0700 Subject: [PATCH] Fix chatroom --- Assets/Scripts/ChatroomMenu.cs | 38 ++++++++++++++++------------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/Assets/Scripts/ChatroomMenu.cs b/Assets/Scripts/ChatroomMenu.cs index 075d9e8..0328c05 100644 --- a/Assets/Scripts/ChatroomMenu.cs +++ b/Assets/Scripts/ChatroomMenu.cs @@ -388,35 +388,33 @@ public class ChatroomMenu : MonoBehaviour { var message = sortedMessages[i]; var obj = content.transform.Find("ChatroomRow_" + message.ID); - if (obj != null || message.Deleted) + if (message.Deleted) { - if (message.Deleted && obj != null) - { - Destroy(obj.gameObject); - } - else if (obj != null) - { - obj.SetSiblingIndex(i + 1); - if (obj.GetChild(3).GetComponent().text != Encoding.UTF8.GetString(Convert.FromBase64String(message.Content))) - { - obj.GetChild(3).GetComponent().text = Encoding.UTF8.GetString(Convert.FromBase64String(message.Content)); - } - var button = obj.GetChild(4).GetComponent