From 94ab5d426d5a18382a191f46a397024fd6a29f7b Mon Sep 17 00:00:00 2001 From: Gaein_nidb Date: Sat, 14 Dec 2024 22:27:01 +0800 Subject: [PATCH] fix: remove deleted object --- StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs b/StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs index 7d36860..222e9e1 100644 --- a/StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs +++ b/StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs @@ -52,13 +52,9 @@ private async Task ProcessBotOnline(BotContext bot, BotOnlineEvent _) // save device info and keystore try { - var deviceInfo = botCtx.UpdateDeviceInfo(); - - logger.LogDebug("{name} updated {isUpdated}, save.", nameof(BotDeviceInfo), deviceInfo == botDeviceInfo); await using var deviceInfoFileStream = isoStorage.OpenFile(implOptions.Value.DeviceInfoFile, FileMode.Create, FileAccess.Write); await JsonSerializer.SerializeAsync(deviceInfoFileStream, botCtx.UpdateDeviceInfo()); - logger.LogDebug("Save {name}.", nameof(BotKeystore)); var keyStore = botCtx.UpdateKeystore(); // update password hash @@ -95,8 +91,7 @@ private void ProcessBotOffline(BotContext bot, BotOfflineEvent _) appLifetime.StopApplication(); } - - + private async Task ProcessMessage(MessageChain message, BotContext thisBot) { var isGroup = message.GroupUin is not null;