fix: avoid warning logs about extrachat

This commit is contained in:
Dean Sheather
2024-04-11 18:32:35 +10:00
parent 8b7a671e52
commit e0e26b782c
2 changed files with 21 additions and 2 deletions
+15
View File
@@ -87,6 +87,8 @@ internal static class ChatTypeExt
ChatType.MessageBook,
ChatType.Alarm,
}),
// Note: ExtraChat linkshells are handled separately in the tab settings
// UI.
};
internal static string Name(this ChatType type)
@@ -355,6 +357,19 @@ internal static class ChatTypeExt
_ => false,
};
internal static bool IsExtraChatLinkshell(this ChatType type) => type switch
{
ChatType.ExtraChatLinkshell1 => true,
ChatType.ExtraChatLinkshell2 => true,
ChatType.ExtraChatLinkshell3 => true,
ChatType.ExtraChatLinkshell4 => true,
ChatType.ExtraChatLinkshell5 => true,
ChatType.ExtraChatLinkshell6 => true,
ChatType.ExtraChatLinkshell7 => true,
ChatType.ExtraChatLinkshell8 => true,
_ => false,
};
internal static bool HasSource(this ChatType type) => type switch
{
// Battle