git » sdk » commit d08e853

AvailableChat displayName is not specific enough

author Stephen Paul Weber
2024-11-06 19:37:48 UTC
committer Stephen Paul Weber
2024-11-06 19:39:02 UTC
parent ad3dba72c562e1f5fcd4eaa311626ffe556028c5

AvailableChat displayName is not specific enough

It is a useful display name for the search result, but it often consists
of something generic to a gateway or just the search query as-typed
which may be incomplete. Not a useful thing to store as the display
name of the chat post-add.

snikket/Client.hx +0 -1

diff --git a/snikket/Client.hx b/snikket/Client.hx
index ee9bfaa..eae4e2a 100644
--- a/snikket/Client.hx
+++ b/snikket/Client.hx
@@ -812,7 +812,6 @@ class Client extends EventEmitter {
 		} else {
 			getDirectChat(availableChat.chatId, false);
 		}
-		if (availableChat.displayName != null) chat.setDisplayName(availableChat.displayName);
 		persistence.storeChat(accountId(), chat);
 		this.trigger("chats/update", [chat]);
 		return chat;