Skip to content

Commit

Permalink
fix(radio): prevent search history from being added while performing …
Browse files Browse the repository at this point in the history
…spotify artist lookup preview
  • Loading branch information
vittee committed Nov 19, 2024
1 parent ed15c51 commit efb95b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/radio/src/discord/automaton/guild-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,10 @@ export class GuildState {
const exactMatches = await station.findTracksByComment(searchKey, id);
const exactIds = new Set(exactMatches.map(t => t.id));

const searchResult = await station
.search({
const searchResult = await station.search({
q: { artist: info.artist },
exactMatch: true
exactMatch: true,
noHistory: true
})
.then(s => s.filter(t => !exactIds.has(t.id)));

Expand Down

0 comments on commit efb95b2

Please sign in to comment.