mirror of
https://github.com/Govor-team/Govor.git
synced 2026-09-17 16:22:49 +00:00
Add read receipts and editing limits
Introduced message read tracking with a dedicated MessageReadingService, SignalR read request/response contracts, and hub notification flow for read receipts. Added configurable message edit constraints through MessageEditingOptions and a shared INowDateTimeProvider so timestamps are consistent across the app. Also fixed recipient validation in message removal and improved push token upsert behavior by matching the correct user/session record.
This commit is contained in:
@@ -6,6 +6,7 @@ using Govor.Application.Authentication.JWT;
|
||||
using Govor.Application.Friends;
|
||||
using Govor.Application.Groups;
|
||||
using Govor.Application.Infrastructure.AdminsStuff;
|
||||
using Govor.Application.Infrastructure.Common;
|
||||
using Govor.Application.Infrastructure.Extensions;
|
||||
using Govor.Application.Infrastructure.Validators;
|
||||
using Govor.Application.Medias;
|
||||
@@ -41,6 +42,8 @@ public static class ConfigurationProgramExtensions
|
||||
services.AddScoped<IInvitationGenerator, InvitationGenerator>();
|
||||
services.AddScoped<ISynchingService, SynchingService>();
|
||||
|
||||
services.AddScoped<INowDateTimeProvider, NowDateTimeProvider>();
|
||||
|
||||
// Friends services
|
||||
services.AddScoped<IFriendshipService, FriendshipService>();
|
||||
services.AddScoped<IFriendRequestCommandService, FriendRequestCommandService>();
|
||||
@@ -64,6 +67,7 @@ public static class ConfigurationProgramExtensions
|
||||
|
||||
//services.AddScoped<IMessageCommandService, MessageCommandService>();
|
||||
services.AddScoped<IMessageSendingService, MessageSendingService>();
|
||||
services.AddScoped<IMessageReadingService, MessageReadingService>();
|
||||
services.AddScoped<IMessageEditingService, MessageEditingService>();
|
||||
services.AddScoped<IMessageRemovingService, MessageRemovingService>();
|
||||
services.AddScoped<IVerifyFriendship, VerifyFriendship>();
|
||||
|
||||
Reference in New Issue
Block a user