From 21ca3300d4e8bccb6e324ec7c3fa62aa2f1cea35 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 22 Aug 2025 02:38:49 -0500 Subject: changed protobuf --- helpers.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'helpers.go') diff --git a/helpers.go b/helpers.go index 97c4d1b..d7819e5 100644 --- a/helpers.go +++ b/helpers.go @@ -12,8 +12,8 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -func (c *Chats) AddGeminiComment(s string) *Chat { - chat := new(Chat) +func (c *Chats) AddGeminiComment(s string) *ChatEntry { + chat := new(ChatEntry) chat.From = Who_GEMINI chat.Content = s @@ -24,8 +24,8 @@ func (c *Chats) AddGeminiComment(s string) *Chat { return chat } -func (c *Chats) AddUserComment(s string) *Chat { - chat := new(Chat) +func (c *Chats) AddUserComment(s string) *ChatEntry { + chat := new(ChatEntry) chat.From = Who_USER chat.Content = s @@ -172,12 +172,12 @@ func (c *Chat) VerifyUuid() bool { return false } -func (x *Chats) AppendNew(y *Chat) { +func (x *Chats) AppendNew(y *ChatEntry) { x.Lock() defer x.Unlock() var chat *Chat - chat = proto.Clone(y).(*Chat) + chat = proto.Clone(y).(*ChatEntry) x.Chats = append(x.Chats, chat) } -- cgit v1.2.3