- Fix /r issues

- Scope the block functions menu entry
- Don't show MuteList if accountId is unset
This commit is contained in:
Infi
2024-12-19 18:48:06 +01:00
parent 7cbaf77fe2
commit 70971d7b8a
4 changed files with 46 additions and 13 deletions
+12 -1
View File
@@ -169,7 +169,17 @@ public sealed class ChatLogWindow : Window
{
Plugin.CurrentTab.CurrentChannel.TellTarget = null;
if (target != null)
Plugin.CurrentTab.CurrentChannel.TellTarget = target;
{
if (info.Permanent)
{
Plugin.CurrentTab.CurrentChannel.TellTarget = target;
}
else
{
Plugin.CurrentTab.CurrentChannel.UseTempChannel = true;
Plugin.CurrentTab.CurrentChannel.TempTellTarget = target;
}
}
}
}
else
@@ -356,6 +366,7 @@ public sealed class ChatLogWindow : Window
private void TabChannelSwitch(Tab newTab, Tab previousTab)
{
Plugin.Log.Information("Channel switch");
// Use the fixed channel if set by the user, or set it to the current tabs channel if this tab wasn't accessed before
if (newTab.Channel is not null)
newTab.CurrentChannel.Channel = newTab.Channel.Value;