Merge branch 'release/rc-v1.2.0' into bugifx/wizard

This commit is contained in:
Alexey Safronov 2023-02-03 10:55:17 +03:00
commit 6fcb5eb605
2 changed files with 11 additions and 11 deletions

View File

@ -2384,16 +2384,16 @@ class FilesStore {
isArchive
);
const defaultRoomIcon =
isRoom &&
getIcon(
iconSize,
fileExst,
providerKey,
contentLength,
roomType,
isArchive
);
const defaultRoomIcon = isRoom
? getIcon(
iconSize,
fileExst,
providerKey,
contentLength,
roomType,
isArchive
)
: undefined;
return {
access,

View File

@ -117,7 +117,7 @@ public class Startup : BaseWorkerStartup
boundedChannelCapacity = 100;
}
services.AddSingleton(Channel.CreateBounded<IEnumerable<FileData<int>>>(new BoundedChannelOptions(boundedChannelCapacity) { SingleReader = true, SingleWriter = true }));
services.AddSingleton(Channel.CreateBounded<IEnumerable<FileData<int>>>(new BoundedChannelOptions(boundedChannelCapacity) { SingleReader = true, SingleWriter = false }));
services.AddSingleton(svc => svc.GetRequiredService<Channel<IEnumerable<FileData<int>>>>().Reader);
services.AddSingleton(svc => svc.GetRequiredService<Channel<IEnumerable<FileData<int>>>>().Writer);
}