From e5b633e0cac5ca8176627a10f3a952f5ac60ec2b Mon Sep 17 00:00:00 2001 From: Mateusz Wiktor Date: Fri, 9 Oct 2026 09:18:52 +0200 Subject: [PATCH] Add append_text_example docs snippet Add AppendMessageTextExample to DraftsMessageSample.cs for the MessageDraft.AppendText docs section. Co-Authored-By: Claude Sonnet 5.5 --- .../Assets/Snippets/DraftsMessageSample.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unity-chat/PubnubChatUnity/Assets/Snippets/DraftsMessageSample.cs b/unity-chat/PubnubChatUnity/Assets/Snippets/DraftsMessageSample.cs index c311f26..ba2d427 100644 --- a/unity-chat/PubnubChatUnity/Assets/Snippets/DraftsMessageSample.cs +++ b/unity-chat/PubnubChatUnity/Assets/Snippets/DraftsMessageSample.cs @@ -210,6 +210,20 @@ public static void RemoveMessageTextExample(MessageDraft messageDraft) // snippet.end } + public static void AppendMessageTextExample(MessageDraft messageDraft) + { + // snippet.append_text_example + // The message reads: + // Check this support article + + // Add text at the end of the draft + messageDraft.AppendText(" https://www.support-article.com/."); + + // The message now reads: + // Check this support article https://www.support-article.com/. + // snippet.end + } + public static async Task SendDraftMessageExample() { // snippet.send_draft_message_example