ContentHash should return offset not count
This commit is contained in:
parent
e9f986cc2e
commit
af8322b734
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue