mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 13:24:59 +00:00
Add forwarding, friend controls, and benefits
Add message forwarding and reply lookup, friend removal and blocking endpoints, and database-backed Govor+ privileges with customizable profile tags. Include migrations, integration tests, and updated API and operations documentation.
This commit is contained in:
@@ -312,7 +312,8 @@ public class ChatsHub : Hub
|
||||
RecipientType: request.RecipientType,
|
||||
SendAt: _nowDateTimeProvider.Now,
|
||||
Media: request.MediaAttachments?.Select(f => new SendMedia(f.MediaId, f.EncryptedKey))
|
||||
?? Array.Empty<SendMedia>()
|
||||
?? Array.Empty<SendMedia>(),
|
||||
ForwardedFromMessageId: request.ForwardedFromMessageId
|
||||
);
|
||||
}
|
||||
|
||||
@@ -328,7 +329,10 @@ public class ChatsHub : Hub
|
||||
SentAt = message.SentAt,
|
||||
IsEdited = false,
|
||||
MediaAttachments = message.MediaAttachments.Select(m => m.MediaFile).ToList(),
|
||||
ReplyToMessageId = replyToId
|
||||
ReplyToMessageId = replyToId,
|
||||
ForwardedFromMessageId = message.ForwardedFromMessageId,
|
||||
ForwardedFromUserId = message.ForwardedFromUserId,
|
||||
ForwardedFromSentAt = message.ForwardedFromSentAt
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user