From c6c6a97c7d368ae787b44172a2cf46faa57ab083 Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 29 Jan 2022 00:50:44 -0500 Subject: [PATCH] fix: set tell target to null more --- ChatTwo/Ui/ChatLog.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index 9e923ac..33b5a3e 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -313,6 +313,8 @@ internal sealed class ChatLog : IUiComponent { if (ImGui.Selectable(name)) { this.Ui.Plugin.Functions.Chat.SetChannel(channel); + this._tellIdx = 0; + this._tellTarget = null; } } @@ -363,6 +365,10 @@ internal sealed class ChatLog : IUiComponent { this.Ui.Plugin.Functions.Chat.SendTell(reason, target.ContentId, target.Name, (ushort) world.RowId, trimmed); } + if (this._tempChannel is InputChannel.Tell) { + this._tellTarget = null; + } + goto Skip; } @@ -384,6 +390,10 @@ internal sealed class ChatLog : IUiComponent { } if (!this.Activate && !ImGui.IsItemActive()) { + if (this._tempChannel is InputChannel.Tell) { + this._tellTarget = null; + } + this._tempChannel = null; this._tellIdx = 0; }