From 42e8b33e1552f20f7fdbcb073eb7941a8f73bdbc Mon Sep 17 00:00:00 2001 From: Mirko Jugurdzija Date: Thu, 7 May 2026 12:40:22 +0200 Subject: [PATCH] fix: skip null/empty DisplayName in chat @-mention suggestions --- .../ChatInput/States/SuggestionPanelChatInputState.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Explorer/Assets/DCL/Chat/_Refactor/ChatInput/States/SuggestionPanelChatInputState.cs b/Explorer/Assets/DCL/Chat/_Refactor/ChatInput/States/SuggestionPanelChatInputState.cs index 1637693573e..357c4d5a149 100644 --- a/Explorer/Assets/DCL/Chat/_Refactor/ChatInput/States/SuggestionPanelChatInputState.cs +++ b/Explorer/Assets/DCL/Chat/_Refactor/ChatInput/States/SuggestionPanelChatInputState.cs @@ -148,6 +148,9 @@ private void UpdateProfileNameMap() //We add or update the remaining participants foreach (Profile.CompactInfo profile in participantProfiles) { + if (string.IsNullOrEmpty(profile.DisplayName)) + continue; + if (profileSuggestionsDictionary.TryGetValue(profile.DisplayName, out ProfileInputSuggestionData profileSuggestionData)) { if (!profileSuggestionData.ProfileData.Equals(profile))