diff --git a/client/peer.go b/client/peer.go index 04d3578..9721ca3 100644 --- a/client/peer.go +++ b/client/peer.go @@ -292,6 +292,10 @@ func (p *Peer) StoreMessage(msg *meowlib.UserMessage, filenames []string) error 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 { return nil }