From 27976335890a2d1b0890e3f8496bec1aacf01b21 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 31 Mar 2024 23:25:09 +0800 Subject: [PATCH] :zap: Optimize history pulling --- pkg/services/messages.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/services/messages.go b/pkg/services/messages.go index d71e1ea..7e18d6b 100644 --- a/pkg/services/messages.go +++ b/pkg/services/messages.go @@ -31,7 +31,6 @@ func ListMessage(channel models.Channel, take int, offset int) ([]models.Message Preload("Attachments"). Preload("ReplyTo"). Preload("ReplyTo.Sender"). - Preload("ReplyTo.Sender.Account"). Preload("Sender"). Preload("Sender.Account"). Find(&messages).Error; err != nil { @@ -50,7 +49,6 @@ func GetMessage(channel models.Channel, id uint) (models.Message, error) { }). Preload("ReplyTo"). Preload("ReplyTo.Sender"). - Preload("ReplyTo.Sender.Account"). Preload("Attachments"). Preload("Sender"). Preload("Sender.Account").