mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/backfill: don't try to backfill empty threads
This commit is contained in:
parent
1d1ecb2286
commit
6e402e8fd2
1 changed files with 3 additions and 0 deletions
|
|
@ -194,6 +194,9 @@ func (portal *Portal) doThreadBackfill(ctx context.Context, source *UserLogin, t
|
|||
if err != nil {
|
||||
log.Err(err).Msg("Failed to get last thread message")
|
||||
return
|
||||
} else if anchorMessage == nil {
|
||||
log.Warn().Msg("No messages found in thread?")
|
||||
return
|
||||
}
|
||||
resp := portal.fetchThreadBackfill(ctx, source, anchorMessage)
|
||||
if resp != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue