mirror of
https://github.com/Govor-team/Govor.git
synced 2026-09-18 00:32:52 +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:
@@ -1,4 +1,5 @@
|
||||
using Govor.Application.Authentication.JWT;
|
||||
using Govor.Application.Messages;
|
||||
|
||||
namespace Govor.API.Common.Extensions;
|
||||
|
||||
@@ -8,7 +9,7 @@ public static class AddOptionExtensions
|
||||
{
|
||||
services.Configure<JwtAccessOption>(configuration.GetSection(nameof(JwtAccessOption)));
|
||||
services.Configure<JwtRefreshOption>(configuration.GetSection(nameof(JwtRefreshOption)));
|
||||
|
||||
services.Configure<MessageEditingOptions>(configuration.GetSection(nameof(MessageEditingOptions)));
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user