Add GetFilePreview method to Peer
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
813611bde7
commit
05df08efcb
@ -292,6 +292,10 @@ func (p *Peer) StoreMessage(msg *meowlib.UserMessage, filenames []string) error
|
|||||||
return StoreMessage(p, msg, filenames, p.GetDbPassword())
|
return StoreMessage(p, msg, filenames, p.GetDbPassword())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *Peer) GetFilePreview(filename string) ([]byte, error) {
|
||||||
|
return FilePreview(filename, p.GetDbPassword())
|
||||||
|
}
|
||||||
|
|
||||||
func (p *Peer) UpdateMessage(msg InternalUserMessage) error {
|
func (p *Peer) UpdateMessage(msg InternalUserMessage) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user