ContentHash should return offset not count
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2021-11-25 15:30:36 -08:00
parent e9f986cc2e
commit af8322b734
1 changed files with 2 additions and 1 deletions

View File

@ -537,7 +537,8 @@ func (cps *CwtchProfileStorage) GetChannelMessageByContentHash(conversation int,
} }
rows.Close() rows.Close()
return id, nil // Return the offset **not** the count
return id-1, nil
} }
// GetRowNumberByMessageID looks up the row number of a message by the message ID // GetRowNumberByMessageID looks up the row number of a message by the message ID