mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
backfill: don't delete all backfill messages if will paginate flag set
This commit is contained in:
parent
73dfae2c5c
commit
171e3a7b6b
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ func (wa *WhatsAppClient) FetchMessages(ctx context.Context, params bridgev2.Fet
|
|||
// TODO this only deletes after backfilling. If there's no need for backfill after a relogin,
|
||||
// the messages will be stuck in the database
|
||||
var err error
|
||||
if !wa.Main.Bridge.Config.Backfill.Queue.Enabled {
|
||||
if !wa.Main.Bridge.Config.Backfill.Queue.Enabled && !wa.Main.Bridge.Config.Backfill.WillPaginateManually {
|
||||
// If the backfill queue isn't enabled, delete all messages after backfilling a batch.
|
||||
err = wa.Main.DB.Message.DeleteAllInChat(ctx, wa.UserLogin.ID, portalJID)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue