14 lines
452 B
C#
14 lines
452 B
C#
|
|
using BotSharp.Abstraction.Repositories;
|
||
|
|
|
||
|
|
namespace BotSharp.Core.Conversations.Services;
|
||
|
|
|
||
|
|
public partial class ConversationService : IConversationService
|
||
|
|
{
|
||
|
|
public async Task<bool> TruncateConversation(string conversationId, string messageId)
|
||
|
|
{
|
||
|
|
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||
|
|
var isSaved = db.TruncateConversation(conversationId, messageId);
|
||
|
|
return await Task.FromResult(isSaved);
|
||
|
|
}
|
||
|
|
}
|