From 42774c26d153961dd8cd7875480533b15b4d65c7 Mon Sep 17 00:00:00 2001 From: Maksim Chegulov Date: Fri, 29 Nov 2024 14:14:25 +0300 Subject: [PATCH] fixed duplication icon change records in history --- products/ASC.Files/Core/Core/FileStorageService.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/products/ASC.Files/Core/Core/FileStorageService.cs b/products/ASC.Files/Core/Core/FileStorageService.cs index 24d266d779..ae819bdb82 100644 --- a/products/ASC.Files/Core/Core/FileStorageService.cs +++ b/products/ASC.Files/Core/Core/FileStorageService.cs @@ -920,12 +920,7 @@ await filesMessageService.SendAsync(updateData.DenyDownload.Value folder, folder.Title); } - if (colorChanged) - { - await filesMessageService.SendAsync(MessageAction.RoomColorChanged, folder, folder.Title); - } - - if (coverChanged) + if ((colorChanged || coverChanged) && !folder.SettingsHasLogo) { await filesMessageService.SendAsync(MessageAction.RoomCoverChanged, folder, folder.Title); }