3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-03-23 15:48:03 +01:00

Merge pull request #2371 from slingamn/sqlite_fix

fix (*SQLite).ListChannels
This commit is contained in:
Shivaram Lingamneni 2026-03-19 22:41:40 -07:00 committed by GitHub
commit ef28345fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -998,7 +998,7 @@ func (s *SQLite) ListChannels(cfchannels []string) (results []history.TargetList
results = make([]history.TargetListing, 0, len(cfchannels))
for _, chname := range cfchannels {
var nanotime int64
err = s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime)
err := s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime)
if err == sql.ErrNoRows {
continue // channel has no messages, skip it
}