Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Reduce chance of false positive in regarding read-states
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Jul 3, 2020
1 parent 21d97bc commit ebc3acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readstate/readmarkers.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ func HasBeenRead(channel *discordgo.Channel, lastMessageID string) bool {

data, present := data[channel.ID]
if !present {
return false
//We return true as there are too many false-positive otherwise and damn, that shit is annoying.
return true
}

parsed, parseError := strconv.ParseUint(lastMessageID, 10, 64)
Expand Down

0 comments on commit ebc3acc

Please sign in to comment.