feat: replace LiteDB with Sqlite

- Replace LiteDB database engine with Sqlite
  Note: old databases will not be deleted
- Message duplication detection improvements
- Tolerate parse errors in release builds, log them
This commit is contained in:
Dean Sheather
2024-04-19 16:57:19 +10:00
parent d7573f7bf6
commit bb6c6b0034
36 changed files with 1421 additions and 906 deletions
+5 -5
View File
@@ -92,7 +92,7 @@ public sealed class PayloadHandler {
DrawItemPopup(item);
drawn = true;
break;
case URIPayload uri:
case UriPayload uri:
DrawUriPopup(uri);
drawn = true;
break;
@@ -252,7 +252,7 @@ public sealed class PayloadHandler {
DoHover(() => HoverItem(item), hoverSize);
break;
case URIPayload uri:
case UriPayload uri:
DoHover(() => HoverURI(uri), hoverSize);
break;
}
@@ -376,7 +376,7 @@ public sealed class PayloadHandler {
}
}
private void HoverURI(URIPayload uri)
private void HoverURI(UriPayload uri)
{
ImGui.TextUnformatted(string.Format(Language.Context_URLDomain, uri.Uri.Authority));
ImGuiUtil.WarningText(Language.Context_URLWarning);
@@ -411,7 +411,7 @@ public sealed class PayloadHandler {
if (Equals(raw, ChunkUtil.PeriodicRecruitmentLink))
GameFunctions.GameFunctions.OpenPartyFinder();
break;
case URIPayload uri:
case UriPayload uri:
TryOpenURI(uri.Uri);
break;
default:
@@ -659,7 +659,7 @@ public sealed class PayloadHandler {
return null;
}
private void DrawUriPopup(URIPayload uri)
private void DrawUriPopup(UriPayload uri)
{
ImGui.TextUnformatted(string.Format(Language.Context_URLDomain, uri.Uri.Authority));
ImGuiUtil.WarningText(Language.Context_URLWarning, false);