mirror of
https://github.com/Govor-team/Govor.git
synced 2026-09-21 18:29:43 +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:
@@ -64,7 +64,7 @@ public class MessageRemovingService : IMessageRemovingService
|
||||
|
||||
private async Task<Result<Message,Error>> ValidateUserRecipientAsync(Message message, DeleteMessage deleteParams)
|
||||
{
|
||||
if (deleteParams.DeleterId == message.RecipientId)
|
||||
if (deleteParams.DeleterId == message.SenderId)
|
||||
{
|
||||
return await ForceRemoveAsync(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user