image previews wip

This commit is contained in:
erinn 2021-12-14 13:21:45 -08:00 committed by Sarah Jamie Lewis
parent 27c2524cd8
commit 204ff9af2a
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ type OverlayMessage struct {
Size uint64 `json:"s"`
}
// FileKey is the unique reference to a file offer
func (om *OverlayMessage) FileKey() string {
return fmt.Sprintf("%s.%s", om.Hash, om.Nonce)